Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // running and creating a container
- docker run <image>
- // running and creating a container
- docker create <image>
- docker start -a <container_id>
- // list the containers
- docker ps βall
- docker ps
- // delete stopped containers
- docker system prune
- // show logs
- docker logs <container_id>
- // terminate docker container
- docker stop <container_id>
- docker kill <container_id>
- // execute a command in a live container
- docker exec -it <container_id> command
- // execute shell
- docker exec -it <container_id> sh
Add Comment
Please, Sign In to add comment