Skip to content

Commit

Permalink
can use $USERPROFILE for volume mount
Browse files Browse the repository at this point in the history
  • Loading branch information
Interpause committed Jan 18, 2023
1 parent 208f652 commit 4ddfbe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Template for ROS2 workspace using [VS Code Dev Containers](https://code.visualst

### Mount Point `/data`

> Note: If using `Dev Containers: Clone Repository in Container Volume...`, the host folder path must be absolute.
> Note: If using `Dev Containers: Clone Repository in Container Volume...`, the host folder path must be absolute. It is possible to use `$USERPROFILE` (Windows) or `$HOME` (Linux) for absolute paths. Otherwise, the host folder path would be relative to the Docker Compose file location.
Mount points are used to mount a folder from the host into the container. An example for mounting a folder to `/data` is included in [`docker-compose.dev.yml`](./docker-compose.dev.yml) as an `(OPTION)`. `/data` can be used to share anything from the host with the container (e.g., config files, models, databases). Also remember to:

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
# Allow access to Docker daemon for VS Code Docker extension to work inside container.
- /var/run/docker.sock:/var/run/docker.sock
# (OPTION) Mount point for `data` folder.
# - C:\Users\user\Documents\project-name-data:/data:cached
# - $USERPROFILE\Documents\project-name-data:/data:cached # $USERPROFILE (Windows) & $HOME (Linux) are absolute paths too.
# (OPTION) Legacy support for mounting repository from host filesystem.
# - .:/code:cached

Expand Down

0 comments on commit 4ddfbe6

Please sign in to comment.