Skip to content

Create local host directories for volume bind mount implicitly? #24386

Answered by eriksjolund
polarathene asked this question in Q&A
Discussion options

You must be logged in to vote

Using ExecStartPre= to create a directory sounds good to me.
Just like you suggested above:

[Service]
# Create the `Volume` location before starting the container:
ExecStartPre=mkdir -p %h/volumes/%N/some-dir

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by polarathene
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants