I want to map volume $HOME/.local
to either /home/$USER/.local
or /root/.local
based on if $USER is root or some nonroot user.
Asked
Active
Viewed 467 times
0

FunkyBaby
- 535
- 3
- 12
-
Does this answer your question? [Docker-compose, conditional statements? (e.g. add volume only if condition)](https://stackoverflow.com/questions/50387076/docker-compose-conditional-statements-e-g-add-volume-only-if-condition) – Chris Doyle Jan 28 '21 at 15:11
-
Not. There is no solution satisfying this question there. – FunkyBaby Jan 29 '21 at 10:47