Docker Administration Series - Docker Commands

ยท

1 min read

Docker Administration Series - Docker Commands

Table of contents

๐‡๐š๐ฏ๐ž ๐ฒ๐จ๐ฎ ๐œ๐ก๐ž๐œ๐ค๐ž๐ ๐จ๐ฎ๐ญ ๐Œ๐ฒ ๐ง๐ž๐ฐ ๐ƒ๐จ๐œ๐ค๐ž๐ซ ๐’๐ž๐ซ๐ข๐ž๐ฌ?? ๐Ÿค”๐Ÿค”

๐ƒ๐Ž๐‚๐Š๐„๐‘ ๐‚๐Ž๐Œ๐Œ๐€๐๐ƒ๐’ ...

๐Ÿ“Œ๐…๐จ๐ซ ๐ฌ๐ญ๐จ๐ฉ ๐š๐ฅ๐ฅ ๐ซ๐ฎ๐ง๐ง๐ข๐ง๐  ๐‚๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ๐ฌ..

docker stop $(docker ps -q)

๐Ÿ“Œ๐…๐จ๐ซ ๐ฌ๐ก๐จ๐ฐ ๐จ๐ง๐ฅ๐ฒ ๐ญ๐ก๐ž ๐‘๐ฎ๐ง๐ง๐ข๐ง๐  ๐‚๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ๐ฌ-๐ˆ๐..

docker ps -q

๐Ÿ“Œ๐“๐จ ๐ฌ๐ก๐จ๐ฐ ๐š๐ฅ๐ฅ ๐ญ๐ก๐ž ๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ๐ฌ-๐ˆ๐...

docker ps -a -q

๐Ÿ“Œ๐“๐จ ๐ซ๐ž๐ฆ๐จ๐ฏ๐ž ๐š๐ฅ๐ฅ ๐ญ๐ก๐ž ๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ๐ฌ..

docker rm $(docker ps -a -q)

๐Ÿ“Œ๐“๐จ ๐ฌ๐ž๐ž ๐ญ๐ก๐ž ๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ ๐ฌ๐ญ๐š๐ญ๐ข๐ฌ๐ญ๐ข๐œ๐ฌ..

docker stats <container-id>    

๐Ÿ“Œ๐“๐จ ๐ฌ๐ž๐ž ๐ญ๐ก๐ž ๐š๐ฅ๐ฅ ๐œ๐ก๐š๐ง๐ ๐ž๐ฌ ๐ข๐ง ๐ข๐ฆ๐š๐ ๐ž..

docker history <image-id>

๐Ÿ“Œ๐“๐จ ๐ซ๐ž๐ฆ๐จ๐ฏ๐ž ๐š ๐ฌ๐ข๐ง๐ ๐ฅ๐ž ๐ข๐ฆ๐š๐ ๐ž..

docker rmi <image-id>    

๐Ÿ“Œ๐“๐จ ๐ซ๐ž๐ฆ๐จ๐ฏ๐ž ๐š๐ฅ๐ฅ ๐ข๐ฆ๐š๐ ๐ž๐ฌ ๐š๐ญ ๐จ๐ง๐ž ๐ญ๐ข๐ฆ๐ž..

docker rmi $(docker images -a -q)    

๐Ÿ“Œ๐“๐จ ๐ฌ๐ž๐ž ๐š๐ฅ๐ฅ ๐จ๐ง๐ฅ๐ฒ ๐ข๐ฆ๐š๐ ๐ž๐ฌ-๐ˆ๐..

docker images -q

Community and Social Footprints :

ย