-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
James Taylor edited this page Oct 18, 2021
·
6 revisions
Random collection of docker commands!
docker container run -t <image> <cmd>
docker container exec -it <container> <cmd>
docker container ls
docker container run --detach --publish 8080:80 --name nginx nginx
docker container inspect nginx
docker container logs <container>
docker system prune
docker image build -t <name> .
docker image ls
Copy a file...
docker cp $(docker create --rm <name>):<src> ./<dest>
play-with-docker.com