dockerÔõô¿´¾µÏñÐÅÏ¢
Éó²é docker ¾µÏñÐÅÏ¢µÄÒªÁ죺ÁгöËùÓоµÏñ£ºdocker imagesÉó²éÌض¨¾µÏñÐÅÏ¢£ºdocker inspect [¾µÏñid»òÃû³Æ]Éó²é¾µÏñÎļþϵͳ£ºdocker run -it [¾µÏñid»òÃû³Æ] /bin/sh
ÔõÑùÉó²é Docker ¾µÏñÐÅÏ¢
Docker ¾µÏñÊÇÇáÁ¿¼¶µÄ¡¢¿ÉÖ´ÐеÄÈí¼þ°ü£¬°üÀ¨ÔËÐÐÓ¦ÓóÌÐòËùÐèµÄËùÓÐÎļþºÍ´úÂë¡£ÒªÉó²é Docker ¾µÏñÐÅÏ¢£¬¿ÉÒÔʹÓÃÒÔÏ°취£º
1. ÁгöËùÓоµÏñ
docker images
µÇ¼ºó¸´ÖÆ
Õ⽫ÁгöËùÓÐÍâµØ´æ´¢µÄ Docker ¾µÏñµÄÐÅÏ¢£¬°üÀ¨:
REPOSITORY£º¾µÏñÃû³Æ
TAG£º¾µÏñ±êÇ©
IMAGE ID£º¾µÏñµÄΨһ±êʶ·û
SIZE£º¾µÏñµÄ¾Þϸ
2. Éó²éÌض¨¾µÏñÐÅÏ¢
ÒªÉó²éÌض¨¾µÏñµÄÏêϸÐÅÏ¢£¬ÇëʹÓà docker inspect ÏÂÁºó½Ó¾µÏñµÄ ID »òÃû³Æ£º
docker inspect [¾µÏñID»òÃû³Æ]
µÇ¼ºó¸´ÖÆ
Õ⽫Êä³öÒ»¸ö JSON ÃûÌõÄÎļþ£¬ÆäÖаüÀ¨ÓйؾµÏñµÄÒÔÏÂÐÅÏ¢£º
Architecture£º¾µÏñµÄ¼Ü¹¹£¨Èç amd64 »ò arm64£©
Author£º¾µÏñ×÷Õß
Config£º¾µÏñÉèÖÃ
ContainerConfig£ºÈÝÆ÷ÉèÖÃ
Created£º¾µÏñ½¨ÉèÈÕÆÚºÍʱ¼ä
History£º¾µÏñ¹¹½¨ÀúÊ·¼Í¼
Labels£ºÓë¾µÏñ¹ØÁªµÄ±êÇ©
Manifest£º¾µÏñÇåµ¥
Os£º¾µÏñʹÓõIJÙ×÷ϵͳ
RootFS£º¾µÏñµÄ¸ùÎļþϵͳ
Size£º¾µÏñµÄ¾Þϸ
3. Éó²é¾µÏñÎļþϵͳ
ÒªÉó²é¾µÏñÎļþϵͳµÄÄÚÈÝ£¬ÇëʹÓà docker run ÏÂÁ²¢½« -it Ñ¡Ïîת´ï¸øÏÂÁÕâÑù¿ÉÒÔ½øÈë¾µÏñ²¢Éó²éÆäÄÚÈÝ£º
docker run -it [¾µÏñID»òÃû³Æ] /bin/sh
µÇ¼ºó¸´ÖÆ
Õ⽫Æô¶¯Ò»¸ö½»»¥Ê½ÈÝÆ÷£¬Äú¿ÉÒÔÔÚÆäÖÐʹÓà ls µÈÏÂÁîÉó²é¾µÏñÎļþϵͳµÄÄÚÈÝ¡£
ÒÔÉϾÍÊÇdockerÔõô¿´¾µÏñÐÅÏ¢µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡