We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker ps --filter volume=VOLUME_NAME
docker build -t image-name .
docker container ls
-a
all status exited docker ps --filter "status=exited
docker ps --filter "status=exited
docker image ls
docker container rm $(docker container ls -aq)
docker image rm $(docker image ls -aq)
docker volume rm $(docker volume ls -q)
docker rm CONTAINER_NAME: delete the container to free disk space
docker rmi IMAGE_NAME:TAG: remove image from your computer to free disk space
docker run -d -p 27017:27017 -v data:/data/db mongo
docker start CONTAINER_NAME
docker stop CONTAINER_NAME
docker container stop $(docker container ls -aq)
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker update --restart=no && docker stop
docker exec -i -t /bin/bash
/bin/sh
docker exec -i -t -u root /bin/bash
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Commands
filter
volume
docker ps --filter volume=VOLUME_NAME
docker build -t image-name .
build an imagelist
container doc
docker container ls
-a
: all containersall status exited
docker ps --filter "status=exited
image
docker image ls
remove
docker container rm $(docker container ls -aq)
docker image rm $(docker image ls -aq)
docker volume rm $(docker volume ls -q)
docker rm CONTAINER_NAME: delete the container to free disk space
docker rmi IMAGE_NAME:TAG: remove image from your computer to free disk space
run
docker run -d -p 27017:27017 -v data:/data/db mongo
-d: development -v: versionstart/stop
docker start CONTAINER_NAME
docker stop CONTAINER_NAME
docker container stop $(docker container ls -aq)
more commands
docker kill $(docker ps -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
docker update --restart=no && docker stop
docker exec -i -t /bin/bash
- if bash is not available use/bin/sh
docker exec -i -t -u root /bin/bash
The text was updated successfully, but these errors were encountered: