Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

error when used with docker-machine #28

Open
kumavis opened this issue Nov 24, 2020 · 5 comments
Open

error when used with docker-machine #28

kumavis opened this issue Nov 24, 2020 · 5 comments
Labels
good first issue Good for newcomers

Comments

@kumavis
Copy link

kumavis commented Nov 24, 2020

all other containers booted correctly

ERROR: for prometheus  Cannot start service prometheus: OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/home/xyz/Development/ethereum2-docker-compose/config/prometheus/prometheus-p.yaml\\\" to rootfs \\\"/var/lib/docker/overlay2/0859d586e611218284bc2e0a6cc0cb53ef1dba7598b9a9fd54d41d1d36c76993/merged\\\" at \\\"/var/lib/docker/overlay2/0859d586e611218284bc2e0a6cc0cb53ef1dba7598b9a9fd5``4d41d1d36c76993/merged/etc/prometheus/prometheus.yml\\\" 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
ethereum2-docker-compose on  master [!?] 
⇡0% ➜ docker -v
cokecDocker version 19.03.4-rc1, build 4ba2b1c606

ethereum2-docker-compose on  master [!?] took 2s 
⇡0% ➜ docker-machine -v
docker-machine version 0.16.0, build 702c267f

no volumes currently

ethereum2-docker-compose on  master [!?] took 3s 
⇡0% ➜ docker volume ls                       
DRIVER              VOLUME NAME
@kumavis
Copy link
Author

kumavis commented Nov 24, 2020

@kumavis
Copy link
Author

kumavis commented Nov 24, 2020

worked around with

docker-machine scp -d -r ./data eth2-03:/var
docker-machine scp -d -r ./config eth2-03:/var

then changing source path of volumes from relative to /var/data /var/config

@stefa2k stefa2k added the good first issue Good for newcomers label Nov 24, 2020
@stefa2k
Copy link
Member

stefa2k commented Nov 24, 2020

Hi, thank you for bringing this issue up! Right now focus is not on tools like docker-machine, but I'd be glad to include instructions and/or configs for it if you can provide them in a pull request.

@kumavis
Copy link
Author

kumavis commented Nov 24, 2020

@stefa2k i can tell there will be a few incompatibilities still, ill continue to report them

@stefa2k
Copy link
Member

stefa2k commented Nov 24, 2020

Yeah I'm pretty sure there will be inconsistencies along the way, same with docker swarm. Thanks for keeping us up to date!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants