Frequently Used Docker Commands
Here is the list of frequently used docker commands:
(You can find the full list in the official documentation )
List All Images
docker image ls -a
Remove All images
docker rmi $(docker images -q)
List All Containers
docker ps -aq
Stop All Running Containers
docker stop $(docker ps -a -q)
Remove All Exited Containers
docker rm $(docker ps -q -f status=exited)
Remove All Running Containers
docker rm -f $(docker ps -a -q)
Remove All Unused Data(Unused containers, Images, Networks and Volumes)
docker system prune
Check Inside A Container
docker ps -aq (lists all container ids)
e.g:
docker exec -it bash
e.g:
docker exec -it 78ad7c6f87dd bash
(You can find the full list in the official documentation )
List All Images
docker image ls -a
Remove All images
docker rmi $(docker images -q)
List All Containers
docker ps -aq
Stop All Running Containers
docker stop $(docker ps -a -q)
Remove All Exited Containers
docker rm $(docker ps -q -f status=exited)
Remove All Running Containers
docker rm -f $(docker ps -a -q)
Remove All Unused Data(Unused containers, Images, Networks and Volumes)
docker system prune
Check Inside A Container
docker ps -aq (lists all container ids)
e.g:
78ad7c6f87dd
6df1eda50edc
c1328da109d7
e.g:
docker exec -it 78ad7c6f87dd bash
well said! This content is the right way to enhance your knowledge and I like it this post. I want more new updates and keep posting...!
ReplyDeleteTableau Training in Chennai
Tableau Course in Chennai
Spark Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
Social Media Marketing Courses in Chennai
Tableau Training in Chennai
Tableau Course in Chennai
That was an awesome post. The author of the blog has shared fantastic info with the viewers.
ReplyDeleteSpoken English Classes in Chennai
Spoken English Class in Chennai
Spoken English in Chennai
Best Spoken English Classes in Chennai
Best Spoken English Institute in Chennai
IELTS Coaching in Chennai
English Speaking Classes in Mumbai
Spoken English Classes in Anna Nagar
Spoken English Classes in Chennai Anna Nagar
IELTS Classes in Mumbai
Great work, This is very different and very useful information. I like more details about this title.
ReplyDeletePega Training in Chennai
Pega Course in Chennai
Primavera Training in Chennai
Unix Training in Chennai
Power BI Training in Chennai
Excel Training in Chennai
Corporate Training in Chennai
Embedded System Course Chennai
Linux Training in Chennai
Well written Blog, I really enjoy reading your blog. this info will be helpful for me. Thanks for sharing.
ReplyDeleteccna Training in Chennai
ccna institute in Chennai
Angularjs Training in Chennai
PHP Training in Chennai
Web Designing Course in Chennai
ccna course in chennai
ccna training in chennai
Thanks for giving an Excellent Blog, it's very useful information to us, keep on it doing like this, I eagerly waiting for your updates, Thank you So much...
ReplyDeleteBest Aviation Academy in Chennai
Best Air hostess Training in Chennai
Pilot Training in Chennai
Airport Ground Handling Training in Chennai
Airport Flight Dispatcher Trainee in Chennai
RTR- Aero Training in Chennai
For more... facebook
I got wonderful information from this blog. Thanks for sharing this post. it becomes easy to read and understand the information.
ReplyDeletePHP Training in Chennai
PHP Training in Bangalore
PHP Training in Coimbatore
PHP Course in Madurai
PHP Course in Bangalore
PHP Training Institute in Bangalore
PHP Classes in Bangalore
Best PHP Training Institute in Bangalore
DevOps Training in Bangalore
DOT NET Training in Bangalore