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

Failing at Docker install convience script #117

Closed
MoreThanWYSIWYG opened this issue Jul 4, 2021 · 4 comments
Closed

Failing at Docker install convience script #117

MoreThanWYSIWYG opened this issue Jul 4, 2021 · 4 comments

Comments

@MoreThanWYSIWYG
Copy link

I have tried on multiple versions of raspian, debian, and raspberry pi os and always fails with the following:

TASK [Run Docker install convenience script.] *********************************************************** fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["/tmp/get-docker.sh"], "delta": "0:00:16.720233", "end": "2021-07-03 21:13:40.309736", "msg": "non-zero return code", "rc": 100, "start": "2021-07-03 21:13:23.589503", "stderr": "+ sh -c apt-get update -qq >/dev/null\n+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null\n+ sh -c curl -fsSL \"https://download.docker.com/linux/debian/gpg\" | apt-key add -qq - >/dev/null\nWarning: apt-key output should not be parsed (stdout is not a terminal)\n+ sh -c echo \"deb [arch=i386] https://download.docker.com/linux/debian buster stable\" > /etc/apt/sources.list.d/docker.list\n+ sh -c apt-get update -qq >/dev/null\n+ [ -n ]\n+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null\nE: Package 'docker-ce' has no installation candidate", "stderr_lines": ["+ sh -c apt-get update -qq >/dev/null", "+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq apt-transport-https ca-certificates curl >/dev/null", "+ sh -c curl -fsSL \"https://download.docker.com/linux/debian/gpg\" | apt-key add -qq - >/dev/null", "Warning: apt-key output should not be parsed (stdout is not a terminal)", "+ sh -c echo \"deb [arch=i386] https://download.docker.com/linux/debian buster stable\" > /etc/apt/sources.list.d/docker.list", "+ sh -c apt-get update -qq >/dev/null", "+ [ -n ]", "+ sh -c apt-get install -y -qq --no-install-recommends docker-ce >/dev/null", "E: Package 'docker-ce' has no installation candidate"], "stdout": "# Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737", "stdout_lines": ["# Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737"]}

@jbkel
Copy link

jbkel commented Jul 5, 2021

The answer is in here, it's what helped me.

docker/for-linux#709

@geerlingguy
Copy link
Owner

@jbkel - That's a really long thread—any particular commands or workarounds in it that helped you? You could link to a specific comment or just copy and paste the relevant fix (would help others running into this).

@MoreThanWYSIWYG
Copy link
Author

The answer is in here, it's what helped me.

docker/for-linux#709

That helped. Specifically:

I am actually running this on a old Intel NUC and had to change armhf to amd64, but it works well now.
It's running on an old NUC from 2014 using Debian 10. I had to install sudo (which was kind of surprising) and rsync.

@jbkel
Copy link

jbkel commented Jul 8, 2021

I got it installed without problems by downloading the most recent .deb files for containerd.io, docker-ce-cli and docker-ce from here https://download.docker.com/linux/debian/dists/buster/pool/stable/armhf/
and installing them in that order with sudo dpkg -i

System:
Raspberry PI 4
Latest Raspbian Buster
deb files: containerd.io_1.2.6-3_armhf.deb docker-ce_18.09.73-0debian-buster_armhf.deb docker-ce-cli_18.09.73-0debian-buster_armhf.deb

This post by brtwrst; sorry I tried to link to the direct post but guess it didn't work.

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

3 participants