'Mount directory in docker image that is build remotely
I have a robot which exists in the same network as my host pc. the robot is powered using Jetson Nano and has ubuntu installed. I have a docker image that I usually build on the robot using -H flag i.e docker -H robot.local build --network="host" -t test .. Now i want to mount a directory from my host to the docker image. the directories aren't being shown in the docker. To make it clear, there are 3 environments here:
1 - Host PC
2 - Ubuntu running on Jetson board
3 - Docker environment
The images are built on 2 from 1. The issue is that mounting a directory from 1 to 3 doesn't work.I tried using docker -H robot.local run --rm -it -v "$(pwd)/src":/root/ --net=host ID_CONTAINER
I want to work in my host pc on a code that changes instantly inside the docker container
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
