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

volumes directories not created #175

Closed
pruje opened this issue May 13, 2020 · 2 comments
Closed

volumes directories not created #175

pruje opened this issue May 13, 2020 · 2 comments

Comments

@pruje
Copy link

pruje commented May 13, 2020

Sorry if this has already been reported. I didn't find it in issues.

When using volumes like:

  volumes:
     - ./volumes/dir:/path/to/volume

if the local directory volumes/dir does not exists, podman returns an error.
I'm running in root, so it's not a permission problem.

With docker-compose, every volume directories and subdirectories are automatically created if not exists.
This missing feature is very annoying when using complex compose files with tons of volumes, because I need to make mkdir -p ... for each volume.

I would be very happy if you can implement it. Thanks!

@muayyad-alsadi
Copy link
Collaborator

In the case of docker, it's docker not docker-compose that creates them. If I understand it well, podman not podman compose should create them.

@pruje
Copy link
Author

pruje commented May 14, 2020

Indeed. A long time ago I thought that it worked on docker-compose but not in docker, but you're right. I will create an issue to the podman project. Thanks for the response.

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