docker / docker/docker-install
Rootless docker installation fails intermittently for Azure Ubuntu 18
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the rootless Docker installation on Azure Ubuntu 18 using the commands in the issue, focusing on the intermittent daemon connection failure at /run/user/1066/docker.sock. Done means identifying the Azure-specific cause and making the installation reliable, then verifying repeated runs complete successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, docker, shell, ubuntu
- Domain
- cloud, devops, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100