Skip to content

I need to pass env to docker container I see it we have command kamal env push but it does not seems to push the file inside roles is always empty. #563

Answered by nickhammond
ahsan-eazyops asked this question in Q&A
Discussion options

You must be logged in to vote

@ahsan-eazyops It doesn't actually push the file into the container, it just runs the container with the --env-file option pointing at that .env file. The .env file is actually sitting on the server in a Kamal directory, if you look at the output from kamal env push you'll see where it stores it for that role + server.

Docs: https://docs.docker.com/engine/reference/commandline/run/#env

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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