Hello Everyone,
I am new to Docker and trying to install Sametime 12.0 for Docker on RedHat 8.2 edition.
MongoDB installation done and configured successfuly.
I am trying to install Docker following as the Sametime (12.0) Administration Guide, Install sametime in Docker environment instraction, always geeting an error as below, (repo added successfuly)
[root@im ~]# yum install docker-ce docker-ce-cli containerd.io
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:15:37 ago on Wed 26 Oct 2022 02:51:00 PM +06.
Error:
Problem 1: cannot install the best candidate for the job
- nothing provides libcgroup needed by docker-ce-3:20.10.21-3.el8.x86_64
Problem 2: package containerd.io-1.6.9-3.1.el8.x86_64 conflicts with runc provided by runc-1.0.0-65.rc10.module+el8.2.0+5762+aaee29fb.x86_64
- package containerd.io-1.6.9-3.1.el8.x86_64 obsoletes runc provided by runc-1.0.0-65.rc10.module+el8.2.0+5762+aaee29fb.x86_64
- package buildah-1.11.6-7.module+el8.2.0+5856+b8046c6d.x86_64 requires runc >= 1.0.0-26, but none of the providers can be installed
- cannot install the best candidate for the job
- problem with installed package buildah-1.11.6-7.module+el8.2.0+5856+b8046c6d.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Any help Please.
@Khandakar Faisal
RHEL8 does not support Docker CE by default. The following information provides a workaround to install compatible Docker CE on RHEL8.
To install Docker CE and Docker compose on RHEL 8:
1)Add the external repository by running the following command.
- sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
- Verify whether the repository has been enabled. To do that, run the following command that returns detailed information about all the enabled repositories.
- sudo dnf repolist -v
2)Install docker-ce with the --nobest option. With this option, the first version of docker-ce with satisfiable dependencies is selected as the "fallback" version.
- sudo dnf install --nobest docker-ce
3)Install the latest available containerd.io package manually
- sudo dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
4)Install the latest docker-ce version:
- sudo dnf install docker-ce
5)Start and enable the docker daemon
- sudo systemctl enable --now docker
- Confirm whether the daemon is active by running this command:
systemctl is-active docker
6)Install docker-compose globally.
- Download the binary file from the project’s GitHub page:
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o docker-compose
- After the binary file is downloaded, move it to the /usr/local/bin folder, and then make it executable:
sudo mv docker-compose /usr/local/bin && sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
Additionally you can also review https://linuxconfig.org/how-to-install-docker-in-rhel-8
Thanks everyone, after removeing all built-in pakages related with podman resolve my problems.
remove include runc which is conflicting with my docker installation.