Docker Error: … is mounted on / but it is not a shared mount

tanut aran
CODEMONDAY
Published in
Aug 9, 2021

Got this error after changing machine and docker-compose up

Meaning this might be issue from different Docker version.

Trailing Slash

Found the problem is from trailing slash, so change docker-compose.yml

-      - ./sftp:/home/user-upload/                                                                                                                                                                     +      - ./sftp:/home/user-upload

Change from user-upload/ to user-upload make this work

Hope this help !

--

--