Docker cheatsheet
Tue 30 March 2021
# run docker container with mounted host directory
# (use a full absolute path for <host_dir>
docker run -v <host_dir>:<container_dir> -it <image_id|image_name> /bin/bash
# connect to a running docker container
docker ps
# >> container_id image container_name
# >> ... ... ...
docker exec -it <container_id|container_name> /bin …
Category: Snippets [Docker]
Read More