Rootless docker installation fails intermittently for Azure Ubuntu 18
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, docker, shell, ubuntu
- Domain
- cloud, devops, operating-systems
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.
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?
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
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.
More from docker/docker-install
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
docker/docker-install#575 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#559 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-install#554 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
docker/docker-install#548 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
docker/docker-install#540 ·
All issues in docker/docker-install
Similar issues
-
Bob Shell support Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
tooling
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
openSUSE/python-rpm-macros#219 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
YunoHost-Apps/adguardhome_ynh#258 ·
-
steam-short-session-tracker: incorrect registry backup path resets settings during automatic repair Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
ValveSoftware/SteamOS#2829 ·