-
Notifications
You must be signed in to change notification settings - Fork 88
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
Container does not work on linux rootless #49
Comments
seems to be related to moby/moby#41904 and moby/moby#43116 I looks like there is no workaround so far 😟 |
Better yet... Is there some documentation that would allow us to reinstall a previous build of Docker that works? My Docker Swarm is down hard since I attempted to upgrade to the latest release. |
Sorry I have no idea :-( |
I had the same issue. The solution is thankfully relatively simple, but also involves the user needing to edit their ~/.bash_profile or ~/.bashrc file In your ~/.bashrc or ~/.bash_profile add the following line. This is to make the bash specific value available to the docker engine. export HOSTNAME=$HOSTNAME Then in your docker-compose.yml add: environment:
- DOCKER_HOST=${HOSTNAME} of if you can't edit the bash file, have the execute command be DOCKER_HOST=$HOSTNAME docker-compose up |
You can use another workaround - use 'hostname' tool.
|
The container does not work on rootless docker with linux. It tries to connect to the gateway ip just fine but somehow this ip leads no where. My knowledge of slirp4netns is simply not enough to figure it out.
I have been using the
DOCKER_HOST
variable with the public ip of the host os as a workaround.Daemon logs:
Docker info
The text was updated successfully, but these errors were encountered: