-
Notifications
You must be signed in to change notification settings - Fork 743
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
installer fails on CentOS8, unmet dep slirp4netns #204
Comments
Please try |
Thanks for your response, fwiw, by using
thank you :) |
Hello everyone! Could somebody fix it? |
I get the same error. |
Seems working fine on clean install of CentOS 8.3 (docker-ce-cli-20.10.2-3.el8.x86_64, slirp4netns-1.1.4-2.module_el8.3.0+475+c50ce30b.x86_64). Logs
$ cat Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "centos/8"
config.vm.provider :virtualbox do |v|
v.memory = 2048
v.cpus = 2
end
config.vm.provision "shell", inline: <<-SHELL
set -eux -o pipefail
curl -fsSL https://get.docker.com | sh
SHELL
end
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/8'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'centos/8' version '2011.0' is up to date...
==> default: Setting the name of the VM: centos8_default_1611411531678_32930
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: No guest additions were detected on the base box for this VM! Guest
default: additions are required for forwarded ports, shared folders, host only
default: networking, and more. If SSH fails on this machine, please install
default: the guest additions and repackage the box to continue.
default:
default: This is not an error message; everything may continue to work properly,
default: in which case you may ignore this message.
==> default: Rsyncing folder: /Users/suda/vagrant/centos8/ => /vagrant
==> default: Running provisioner: shell...
default: Running: inline script
default: ++ curl -fsSL https://get.docker.com
default: ++ sh
default: # Executing docker install script, commit: 3d8fe77c2c46c5b7571f94b42793905e5b3e42e4
default: + sh -c 'yum install -y -q yum-utils'
default: + sh -c 'yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo'
default: Adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
default: + '[' stable '!=' stable ']'
default: + sh -c 'yum makecache'
default: CentOS Linux 8 - AppStream 7.7 kB/s | 4.3 kB 00:00
default: CentOS Linux 8 - BaseOS 7.5 kB/s | 3.9 kB 00:00
default: CentOS Linux 8 - Extras 2.2 kB/s | 1.5 kB 00:00
default: Docker CE Stable - x86_64 50 kB/s | 7.8 kB 00:00
default: Metadata cache created.
default: + '[' -n '' ']'
default: + sh -c 'yum install -y -q docker-ce'
default: warning: /var/cache/dnf/appstream-fd636d66ef3d60cc/packages/container-selinux-2.144.0-1.module_el8.3.0+475+c50ce30b.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
default: Importing GPG key 0x8483C65D:
default: Userid : "CentOS (CentOS Official Signing Key) <security@centos.org>"
default: Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
default: From : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
default: warning: /var/cache/dnf/docker-ce-stable-fa9dc42ab4cec2f4/packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
default: Importing GPG key 0x621E9F35:
default: Userid : "Docker Release (CE rpm) <docker@docker.com>"
default: Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
default: From : https://download.docker.com/linux/centos/gpg
default: If you would like to use Docker as a non-root user, you should now consider
default: adding your user to the "docker" group with something like:
default:
default: sudo usermod -aG docker your-user
default:
default: Remember that you will have to log out and back in for this to take effect!
default:
default: WARNING: Adding a user to the "docker" group will grant the ability to run
default: containers which can be used to obtain root privileges on the
default: docker host.
default: Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface
default: for more information.
$ vagrant ssh -- rpm -qa centos* docker* slirp* | sort
centos-gpg-keys-8-2.el8.noarch
centos-linux-release-8.3-1.2011.el8.noarch
centos-linux-repos-8-2.el8.noarch
docker-ce-20.10.2-3.el8.x86_64
docker-ce-cli-20.10.2-3.el8.x86_64
docker-ce-rootless-extras-20.10.2-3.el8.x86_64
slirp4netns-1.1.4-2.module_el8.3.0+475+c50ce30b.x86_64 |
I had the same probem and was able to reproduce and solve it. You need to enable the container-tools. Problem explained: I hope i can help someone with this. :) |
Similar problem on RHEL 7.4 running on bare metal, cannot install package docker-ce-rootless-extras due to missing dependencies; and RHEL7 does not have dnf so I cannot try the solution mentioned by @shakeme to enable container-tools.
Also tried for slirp4netns on its own:
A stackoverflow answer put me on to this repo, created /etc/yum.repos.d/centos-extras.repo with this content:
Then the dependencies were found. |
I am having a similar issue, I am using OL7 on ARM-based server.
Any idea how I can fix this issue? |
Still broken. What a shame. |
Anyone else who is still facing this issue, I was able to fix this issue by enabling developer repo. |
To fix it, Oracle Linux developer repo should be enabled. In the current Oracle Linux version from Oracle cloud it can be done by editing /etc/yum.repos.d/oraclelinux-developer-ol7.repo, where in a block [ol7_developer] value enabled should be set to 1. |
On Oracle Linux Server 7.9 I had a similar issue when installing docker-ce
|
On the RHEL 7 dependencies can be resolved by enabling extras repo: |
on RHEL 7.6 the below helped me Then run the installation command to install dependent packages sudo yum -y install slirp4netns fuse-overlayfs container-selinux now install docker sudo yum install docker-ce docker-ce-cli containerd.io |
@14by12 cool, thanks for the update. :) I find it embarrassing for docker.com, every time someone says just type https://get.docker.com; Someone should have looked at this a little deeper than to just wait in silence for a Linux distro, but I guess that is open source for you :) |
Sorry, I am not sure if this is the correct place to put this, but the installer is failing with dependency issues.
docker-ce-rootless-extras
seems to requireslirp4netns
.FWIW I had installed docker on a server on Friday, that server doesn't have docker-ce-rootless-extras installed, which is what seems to depend on slirp4netns.
thanks folks
The text was updated successfully, but these errors were encountered: