Docker Cheatsheet

docker-cheatsheet

Check Docker Version :

docker version

Login into Docker :

docker login
or
docker login -u 

Search Hub for an image

docker search 

Publish an image to Docker Hub

docker push /

List all images :

docker image ls

Build an Image :

docker build -t  .

Run an Image :

docker run 

Start or stop an existing container :

docker start|stop  (or )

To inspect a running container :

docker inspect  (or )

Pull Image :

docker pull manthanank/

List all containers :

docker ps -a
or
docker ps -all

Running containers :

docker ps

Stop an image :

docker stop 

Delete container :

docker rm 

Delete an Image :

docker rmi 

Remove all unused images :

docker image prune
Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
how-to-create-an-eyedropper-tool-using-javascript?

How to create an EyeDropper tool using JavaScript?

Next Post
rest-vs-soap:-why-we-recommend-rest-apis-for-a2p-messaging

REST vs SOAP: why we recommend REST APIs for A2P messaging

Related Posts