skip to Main Content

Installed docker on Centos (running using VirtualBox) following steps below:

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum install docker

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

And I rebooted my virtual machine, and as I type ‘docker –version, I get below:

"Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.  podman version 1.0.5"

Can anybody explain what is going on in my machine?

3

Answers


  1. Since docker is not officially supported by REHL8/CentOS8. You have to install it by additional steps.
    This is a good article I have found in the internet, shows how to install docker in CentOS 8.

    https://computingforgeeks.com/install-docker-and-docker-compose-on-rhel-8-centos-8

    Login or Signup to reply.
  2. @swxraft if you run the commands in the order posted in your question

    sudo yum install -y yum-utils device-mapper-persistent-data lvm2

    sudo yum install docker

    sudo yum-config-manager –add-repo
    https://download.docker.com/linux/centos/docker-ce.repo

    you installed a docker in the REHL repo (probably an alias to podman). And then loaded the repo for the oficial docker but never installed from there.


    Extra info:

    A) installation docker

    How to install docker: follow this link [1] instead @govinda-malavipathirana. Latest docker-ce needs a newer containerd.io but REHL is excluding the ones in the docker repo. So you need to install docker -ce with –nobest (see instructions and error in link). Also you need to disable the firewall.d to have DNS in docker.

    B) why docker is not in REHL8

    Docker cli and daemon are not supported by REHL8 and its derivatives and it is "blocked" in several ways. Why is not suported -> monolitic and old [2]

    Docker images ARE supported using podman. The images created with docker work with podman and viceversa. Also podman commands are the same as docker client.

    Podman is a substitute of docker (but it does not use a daemon). They recommend to add a symlink docker -> podman and you will not notice the difference [3]

    [1]https://linuxconfig.org/how-to-install-docker-in-rhel-8

    [2]http://crunchtools.com/why-no-docker/

    [3]https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/

    Login or Signup to reply.
  3. Docker will not support RedHat 8, it will be installed as Podman.

    So you can try it with Amazon linux2 instead of RedHat.
    You have to create a new instance in AWS with Amazon linux2, then it will work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search