Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 5b6371c

Browse files
committed
Use cached consistency in bind mounts
1 parent 4833736 commit 5b6371c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

container-templates/docker-compose/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
volumes:
2626
# This is where VS Code should expect to find your project's source code
2727
# and the value of "workspaceFolder" in .devcontainer/devcontainer.json
28-
- ..:/workspace
28+
- ..:/workspace:cached
2929

3030
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details.
3131
# - /var/run/docker.sock:/var/run/docker.sock

containers/docker-existing-docker-compose/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626

2727
volumes:
2828
# Update this to wherever you want VS Code to mount the folder of your project
29-
- .:/workspace
29+
- .:/workspace:cached
3030

3131
# Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details.
3232
# - /var/run/docker.sock:/var/run/docker.sock

containers/docker-in-docker-compose/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919

2020
volumes:
2121
# Update this to wherever you want VS Code to mount the folder of your project
22-
- ..:/workspace
22+
- ..:/workspace:cached
2323

2424
# Forwards the local Docker socket to the container.
2525
- /var/run/docker.sock:/var/run/docker.sock

containers/javascript-node-12-mongo/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
dockerfile: Dockerfile
1919

2020
volumes:
21-
- ..:/workspace
21+
- ..:/workspace:cached
2222

2323
# Overrides default command so things don't shut down after the process ends.
2424
command: sleep infinity

containers/javascript-node-12-postgres/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
dockerfile: Dockerfile
1919

2020
volumes:
21-
- ..:/workspace
21+
- ..:/workspace:cached
2222

2323
# Overrides default command so things don't shut down after the process ends.
2424
command: sleep infinity

containers/python-3-postgres/.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
dockerfile: .devcontainer/Dockerfile
1515

1616
volumes:
17-
- ..:/workspace
17+
- ..:/workspace:cached
1818

1919
# Overrides default command so things don't shut down after the process ends.
2020
command: sleep infinity

0 commit comments

Comments
 (0)