-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💡 Feature request: Add option to disable IPV6 #296
Comments
Meanwhile, you can work around by binding to |
I could only find an option to chose the port to bind to, not address. How do you define what address to bind to? |
to pass options to the binary through cargo: |
Is it possible to pass that command line option through docker without modifying the dockerfile itself? When adding it like I usually would I get an error Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "-a": executable file not found in $PATH: unknown |
You need to change the Docker Compose file, not the Dockerfile. I haven't actually used the release container image. |
I tried command:
- "-a 0.0.0.0" and command:
- "-a"
- "0.0.0.0" in my compose.yaml neither of them worked. It gave me the error message I attached in previous post. |
You're right, I checked the compose and Dockerfile. Everything is hardcoded in the Dockerfile. This should be changed. The cli flags should be specified in the compose file rather than in the Dockerfile. This could go in a new issue. As to resolve your issue: maybe ipv6 can be disabled in docker or in the container? Check the Network sections of the compose file. |
I managed to make it work now. The correct thing to add to your compose file is: command:
- "/usr/local/bin/redlib"
- "-a"
- "0.0.0.0" I will leave this issue open though because I think there should be an environment variable in the same way there is one for what port to bind to. |
Nice! It's strange that the default compose.yml doesn't have a "command" section, though. |
Currently redlib will not start on a host where IPV6 is disabled. I would like to see an environment variable to disable binding to ipv6.
The text was updated successfully, but these errors were encountered: