onetimesecret-docker icon indicating copy to clipboard operation
onetimesecret-docker copied to clipboard

unable to start with default docker-compose.yaml

Open wivaku opened this issue 4 years ago • 2 comments

Using the default docker-compose.yaml.

mounting "/Users/john/Docker/onetimesecret/config" 
to rootfs "/var/lib/docker/overlay2/7411...613b/merged" 
at "/var/lib/docker/overlay2/7411...613b/merged/etc/onetime/config" caused "not a directory"

In detail:

docker-compose -f docker-compose-default.yaml up
Recreating onetimesecret ... error

ERROR: for onetimesecret  Cannot start service onetimesecret: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/Users/john/Docker/onetimesecret/config\\\" to rootfs \\\"/var/lib/docker/overlay2/7411b6e476dec747a61c3ae4b5b17ed9a690216e1358ad473b3c43ed9613b/merged\\\" at \\\"/var/lib/docker/overlay2/74110b6e47dec7473a61c3ae4b517ed9a690216e1358ad473b3c43ed9613b/merged/etc/onetime/config\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

ERROR: for onetimesecret  Cannot start service onetimesecret: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/Users/john/Docker/onetimesecret/config\\\" to rootfs \\\"/var/lib/docker/overlay2/74110b6e47dec743a61c3ae4b5b17ed9a690216e1358ad473b3c43ed9613b/merged\\\" at \\\"/var/lib/docker/overlay2/74110b6e476dec7473a61c3ae4b5b17ed9a690216e1358ad473b3c43ed9613b/merged/etc/onetime/config\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.

wivaku avatar May 13 '20 09:05 wivaku

same error here....

any idea ?

Shaltz avatar Jun 08 '20 16:06 Shaltz

Yes. I just had the issue :

rm -r ./config touch config

Anathorn-fr avatar Sep 17 '21 12:09 Anathorn-fr