Just some basic docker commands.
Guide
Manage containers
List containers
Show running:
docker container ls
Show all:
docker container ls --all
Start / stop / restart container
docker <start|stop|restart> <container>
List container port mappings
docker port <container>
Copy file(s) from container to host
docker cp <container>:/file/path/within/container /host/path/target
Interactively log into container with bash
docker exec -it <container> /bin/bash
References
- https://docs.docker.com/
- https://stackoverflow.com/questions/22049212/copying-files-from-docker-container-to-host
Related articles