Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] config.json returned as a folder #47

Open
garikoitz opened this issue Mar 28, 2020 · 2 comments
Open

[BUG] config.json returned as a folder #47

garikoitz opened this issue Mar 28, 2020 · 2 comments

Comments

@garikoitz
Copy link
Contributor

When running this code, it throws a folder instead of a file

docker run --rm -it \

  -v $basedir:/flywheel/v0/input \
  -v empty:/flywheel/v0/input/config.json \
  -v $basedir:/flywheel/v0/output \
  garikoitz/prfanalyze-vista
@noahbenson
Copy link
Collaborator

When I do this, I get the following error:

> docker run --rm -it -v $basedir:/flywheel/v0/input -v $PWD/empty:/flywheel/v0/input/config.json -v $basedir:/flywheel/v0/output garikoitz/prfanalyze-vista 
Could not read config.json!

Or, if empty doesn't exist...

> docker run --rm -it -v $basedir:/flywheel/v0/input -v empty:/flywheel/v0/input/config.json -v $basedir:/flywheel/v0/output garikoitz/prfanalyze-vista 
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused \"rootfs_linux.go:58: mounting \\\"/var/lib/docker/volumes/empty/_data\\\" to rootfs \\\"/var/lib/docker/overlay2/051177842c265dde728de807f82ec4d6e044bdd13fcd73b0b345d24512654901/merged\\\" at \\\"/var/lib/docker/overlay2/051177842c265dde728de807f82ec4d6e044bdd13fcd73b0b345d24512654901/merged/flywheel/v0/input/config.json\\\" 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.

Is there something in your empty file?

@garikoitz
Copy link
Contributor Author

garikoitz commented Mar 30, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants