Hi, It’s possible to use variable when create new volumes container?
Whit this, i could create named volumes even using scaleup on my service.
Something like this:
Hi, It’s possible to use variable when create new volumes container?
Whit this, i could create named volumes even using scaleup on my service.
Something like this:
Variable substitution only works Rancher Compose and doesn’t work in the UI. The substitutions are based on environment variables from the host calling Rancher Compose, so $CONTAINER_NAME
wouldn’t be set per container like I think you’re expecting.
Ok, and has another option to set a name to volume container based on main container name?
I think you’re asking for an option to set each name of a volume to be the container name. This option does not exist in Rancher today. You could add an enhancement request in our github repo.
Thanks for reply Denise… I’ll do that.