April 9, 2023, 6:39am
Hello, I created a game server for my friend by using Docker image. But inside the pack it’s having an input for the password, I have imported the password to the .env but its somehow not working and then it’s showing this error for me.
I’m curious that how we can input manually to the machines? Thanks.
April 9, 2023, 3:35pm
This sounds like an issue specific to the Docker image you are using. Hopefully it has documentation that explains how to set the password non-interactively.
If you are using a custom image, you should post your Dockerfile. You might be able to pass the password as input to the Java program using something like
CMD echo "$PASSWORD" | java ...
where PASSWORD is an environment variable that you can set using
flyctl secrets set to avoid hard-coding the password into your Dockerfile.
April 9, 2023, 3:37pm
I just figured out that environment in
fly.io is different from others so I tried to set both in docker-compose and --env arg in cli and its worked
April 16, 2023, 3:37pm
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.