Skip to content

Latest commit

 

History

History
91 lines (48 loc) · 1.36 KB

docker_management.md

File metadata and controls

91 lines (48 loc) · 1.36 KB

1. Starting with Docker
2. Dockerfile
3. Management in Docker
4. Docker image size reduction
5. Docker GPU passthrough
6. Docker inside Visual Studio Code
7. Docker and ROS
8. Docker Compose
9. Docker with the Jetson platform


3. Management of docker images and running containers

To check al existing images stored

docker images

this will show all base images, layers and final images that are tagged by a name.

TO DO: example images

To clear all not used layers

docker rmi --force $(docker images -f "dangling=true" -q)

To remove specific layers or images

docker rmi --force <IMAGE ID>

where IMAGE ID can be retrieved using

docker images

To reset and remove unwanted occupied space by docker

docker system prune
docker ps
docker ps -a
docker image ls
docker info
docker start <name>
dockerdocker exec -it <name> bash
 stop <name>
docker container rm <name> 

Build commands

Run commands


That is all for managing your containers and images, for more information on docker see below for the next step.

4. Docker image size reduction