Table of contents
- run-start a container
- ps -list commands
- stop-stop a container
- rm -remove a Container
- images -list images
- rmi -remove images
- pull-download an image
- append a command
- exec - execute a command
- docker kill
- docker pause or unpause
- docker history
- docker inspect
- docker logout
- docker info
- docker logs
- docker cp
- docker commit
- docker login
- docker restart
- run - attach
- run-detach
run-start a container
docker run nginx
ps -list commands
docker ps
docker ps -a
stop-stop a container
docker stop container_id
rm -remove a Container
docker rm container_id
images -list images
docker images
rmi -remove images
docker rmi nginx
pull-download an image
docker pull nginx
append a command
docker run ubuntu sleep 10
exec - execute a command
docker exec oracle cat/etc/hosts
docker kill
docker kill [container name]
docker pause or unpause
docker pause [container name]
docker unpause [container name]
docker history
docker history [container name]
docker inspect
docker inspect [image name]
docker logout
docker logout
docker info
docker info
docker logs
docker logs [container name or ID]
docker cp
docker cp hello-container:/4/5/sale.conf ./test
docker commit
docker commit [container name]
docker login
docker login
docker restart
docker restart [container name]
run - attach
docker run hello/local-webapp
docker attach topdemo
run-detach
docker run -d hello/local-webapp
If you liked what you read, do follow and Any feedback for further improvement will be highly appreciated!
Thank you and Happy Learning!👏