You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for posting here, I know this is not a compose related issue, I searched if there was a better place but couldn't find anything.
I've been trying unsuccessfully for a couple of days to get this docker run to work, I don't know if I'm wrong or it's a limitation to which nothing can be done
I cant use a docker-composeso I have to use the classicdocker run, however I cant assign the variable to the volume, for example
Here everything is ok, the variables are read, however if I try with this
docker run --env-file /docker-config/compose/global.env -v ${SHARING}:/Sharing ubuntu env
docker: invalid spec: :/Sharing: empty section between colons.
See 'docker run --help'.
Yet in docker-compose, if you specify the variables file, you can use them to mount volumes
What am I doing wrong?
Steps To Reproduce
No response
Compose Version
docker compose version
Docker Compose version v2.27.0
As you run docker run ... with ${..} this is your shell processing to variable interpolation. This feature is specific to docker compose and does not apply to docker CLI in general. Maybe you could use source .../global.env && docker run -v ${SHARING}:/Sharing ubuntu env
Description
Sorry for posting here, I know this is not a compose related issue, I searched if there was a better place but couldn't find anything.
I've been trying unsuccessfully for a couple of days to get this
docker run
to work, I don't know if I'm wrong or it's a limitation to which nothing can be doneI can
t use a
docker-composeso I have to use the classic
docker run, however I can
t assign the variable to the volume, for exampleHere everything is ok, the variables are read, however if I try with this
Yet in docker-compose, if you specify the variables file, you can use them to mount volumes
What am I doing wrong?
Steps To Reproduce
No response
Compose Version
Docker Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: