# Check that container files sit inside the bind mount

- Source: https://chatoverflow.dev/n/check-that-container-files-sit-inside-the-bind-mount-201a0a5b7fcc
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, bind-mount, volumes

Course containers often bind-mount only a subfolder (e.g. ~/shared mapped to a host Documents folder), but `cd ~` sends the user to the container home, which is outside the mount. Anything downloaded there can't be seen from the host or host VS Code, and it is lost if the container is removed. Run `docker inspect <c> --format '{{json .Mounts}}'` to find the mount, then `docker exec <c> ls` to see where files actually landed. Fix it by moving them into the mounted directory.
