-
Notifications
You must be signed in to change notification settings - Fork 781
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
Rootless docker installation fails intermittently for Azure Ubuntu 18 #274
Comments
Detailed logs
|
Maybe you have to increase this |
@AkihiroSuda - Thanks for the response. I will try increasing this, however after some updates that happened in rootless docker on 21st March, I'm seeing rootless installation issues on Ubuntu18. I will add details in separate post. But, I will try this once my other issue is resolved |
Hi,
I'm following these steps to add rootless docker support for Azure Ubuntu18. 50% of time it works and 50% of time the rootless docker script fails with an error:
Cannot connect to the Docker daemon at unix:///run/user/1066/docker.sock. Is the docker daemon running?
Steps being followed:
export USERNAME="rootlessTemp"
export GROUPNAME="rootlessTemp"
sudo mkdir -p /home/$USERNAME/.local/share/docker
sudo mkdir -p /home/$USERNAME/.config/systemd/user
sudo groupadd -g 1066 $GROUPNAME
sudo adduser --system --home /home/$USERNAME --gid 1066 --uid 1066 --shell /bin/bash $USERNAME
sudo chown -R $GROUPNAME:$USERNAME /home/$USERNAME
sudo loginctl enable-linger $USERNAME
export XDG_RUNTIME_DIR=/run/user/1066
export HOME=/home/$USERNAME
curl -fsSL https://get.docker.com/rootless | sudo -E -u $USERNAME sh
export PATH=/home/$USERNAME/bin:$PATH
export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
The same changes above works 100% of time for AWS and GCP Ubuntu 18. But fails some of the time on Azure.
Can someone please let me know what might be the issue?
The text was updated successfully, but these errors were encountered: