Skip to content

Commit 605ac64

Browse files
committed
Fix
1 parent 52428ae commit 605ac64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/remote/containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ Note that you may want to include a volume mount to your local `.gitconfig` fold
474474
```yaml
475475
volumes:
476476
# This lets you avoid setting up Git again in the container
477-
- ~/.gitconfig:~/.gitconfig
477+
- ~/.gitconfig:/root/.gitconfig
478478
```
479479
480480
After making edits, you can test by running the **Remote-Containers: Reopen Folder in Container** or **Remote-Containers: Rebuild Container** commands. Once the container is been created, the local filesystem is automatically mapped into the container and you can start working with it from VS Code.
@@ -505,7 +505,7 @@ version: '3'
505505
- ..:/workspace
506506
507507
# This lets you avoid setting up Git again in the container
508-
- ~/.gitconfig:~/.gitconfig
508+
- ~/.gitconfig:/root/.gitconfig
509509
510510
# Overrides default command so things don't shut down after the process ends.
511511
command: sleep infinity

0 commit comments

Comments
 (0)