*** mounting host directory to container directly *** - any edit visible in both. -🇻 flag $ docker run -it --rm -v /home/user1/hostpath:/home/cont_path ubuntu /bin/bash root@e8439d98c635:/# #linuxstr #docker #techtip *** must do at start or else hav2 stop - do - restart very useful if using hot swap SATA SSD mSATA disks without reboot host system. Let’s break down this command: -i -t (or -it) enables interactive access to the container –rm removes the container upon exit to free system resources (CPU, memory) /path/on/host is the path of the directory on the host machine that we want to mount /path/in/container is the desired path within the container where the directory will be accessible image_name is the name or ID of the Docker image we want to run /bin/bash provides a Bash shell within the container https://image.nostr.build/d2f224246ac2d234f5848afa47861c547822c06b5ca51b2946770fac68335f00.png