-
Notifications
You must be signed in to change notification settings - Fork 0
Home
bind 'all interfaces' to 0.0.0.0
docker run --rm -it -p 3000:3000 -v
bind docker host's 127.0.0.1
127.0.0.1:3000:3000
docker build
docker build --no-cache -t imageName .
Shell Access
docker exec -it my-container-name bash
docker-compose up -d
-d detached
docker-compose ps
docker-compose stop
Ctrl+P Ctrl+Q
docker ps -a -q | \ xargs --no-run-if-empty docker rm -f
docker ps -a -q --filter status=exited | \ xargs --no-run-if-empty docker rm
docker container prune
comm -3 \ <(docker ps -a -q --filter=status=exited | sort) \ <(docker ps -a -q --filter=status=exited | sort) \ xargs --no-run-if-empty docker inspect > error_containers
docker volume ls
docker volume inspect {volume_id}
docker export container-d
- export to TAR
docker import ...
- import from TAR
docker export container-id | docker import - container