Skip to content
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

[Suggestion for flyio-cloud-dev-env] Set iptables = false for docker get working #62

Open
hacker-hackman opened this issue Jan 23, 2023 · 1 comment

Comments

@hacker-hackman
Copy link

hacker-hackman commented Jan 23, 2023

Currently if one tries to run docker (even with sudo) in this cloud env at fly.io there is an error:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

To fix it:

  1. Create a file /etc/docker/daemon.json containing:
{
  "iptables": false
}
  1. Run service docker start

Sources:
https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269/2
https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269/9
https://gist.github.com/goll/bdd6b43c2023f82d15729e9b0067de60

Thanks for a great job by the way! You've made what I'm exactly was looking for since the last week :-)

@lambrospetrou
Copy link
Owner

Nice. I will keep it in mind in my next update and add it in the setup code!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants