Open dss010101 opened 1 year ago
Similar error: https://github.com/moby/moby/issues/40835
Hi, i am coming back to this issue. i never solved it, instead simply copied by files locally to the 'c:' drive and it worked there. Put as i am relying on google drive as my main drive more and more, i would like to understand why this is happening.
My project structure without running in a devcontainer looks like this:
The docker-compose.yml looks like this:
networks:
ai-net:
driver: bridge
services:
alpha_insite_app:
container_name: alpha_insite_app
image: alpha_insite_app
build:
context: ..
dockerfile: .devcontainer/Dockerfile
env_file:
- ./.env
volumes:
#- ../..:/workspaces:cached
- ../..:/workspaces
- ~/.ssh:/home/${USER_NAME}/.ssh
command: sleep infinity
shm_size: '2gb'
ports:
- 8000:5000
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
networks:
- ai-net
The problem is when i build and open the container - it builds fine and vs code does open into the built container fine, but the code/source is NOT mapped. all i see is this:
I do see in the logs the following:
[6477 ms] Start: Run: docker inspect --type image alpha_insite_app
[6600 ms] Docker Compose override file for creating container:
services:
'alpha_insite_app':
entrypoint: ["/bin/sh", "-c", "echo Container started\n
trap \"exit 0\" 15\n
\n
exec \"$$@\"\n
while sleep 1 & wait $$!; do :; done", "-"]
labels:
- 'devcontainer.local_folder=g:\My Drive\Documents\Projects\stock-analysis\alpha_insite\alpha_insite_app'
- 'devcontainer.config_file=g:\My Drive\Documents\Projects\stock-analysis\alpha_insite\alpha_insite_app\.devcontainer\devcontainer.json'
volumes:
- vscode:/vscode
volumes:
vscode:
external: true
but ththatt path is not being mounted it seems and so my source code is not available within the container. This was working at one point fine. no longer..
any help would be appreciated...
I have recently moved mostof my projects and code over to a google drive (which is mapped as the G: drive on my windows system).
When building and restarting my dev container in vscode, i am getting the below error. This does not happen if switch back to my original location for the code. Does anyone know what this error means and how to resolve?
The docker-compose looks like this and the underlying docker image for ts_service is based on mcr.microsoft.com/devcontainers/python:3-bullseye
I am developing on Windows 11, but my vscode dev container environment is debian based linux(mcr.microsoft.com/devcontainers/python:3-bullseye) running in desktop docker. As mentioned - this does not happen if the code resides on my systems native harddrive - only when the code is on a google drive map.