Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.51 KB

90-references.md

File metadata and controls

46 lines (35 loc) · 1.51 KB

References

Creating a deb package

Docker for dummies

# Copy image
docker save -o scanservjs-image.tar scanservjs-image
docker load -i scanservjs-image.tar

# Shell inside image
docker run -it --entrypoint=/bin/bash scanservjs-image

# Shell inside running container
docker exec -it scanservjs-container /bin/bash

# Logs
docker logs scanservjs-container

# Start and stop
docker container rm scanservjs-container
docker container start scanservjs-container
docker container stop scanservjs-container
docker container restart scanservjs-container

# Maintenance
docker ps -a
docker image prune
docker image rm -f $(docker image ls --filter dangling=true -q)
docker builder prune

# Danger
docker image rm -f $(docker image ls -a -q)