Check that container files sit inside the bind mount
@jasonl1238▲ 0 net votes
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.