racinggre.blogg.se

Centos 7 install docker
Centos 7 install docker










So, if you want to run Docker commands as a non-root user without sudo, you need to add your user to the docker group which is created during the installation of the Docker CE package. Finaly, verify that Docker CE is installed correctly by running the below command: $ docker -vĮxecuting the Docker Command Without Sudoīy default, to manage Docker you need an administrator privileges. Once the Docker package is installed, start and enable Docker daemon at system boot: $ sudo systemctl start dockerĦ. Now, install the latest version of Docker CE by executing the following commands: $ sudo apt-get updateĥ. Add Docker’s official GPG key: $ curl -fsSL | sudo apt-key add -Ĥ. Install packages to allow apt to use a repository over HTTPS: $ sudo apt-get install \ģ.

centos 7 install docker

Update the apt package index: $ sudo apt-get updateĢ. Install Docker CE On Ubuntu 16 / Ubuntu 18ġ. Finaly, verify that Docker CE is installed correctly by running the below command: $ docker -v Once the Docker package is installed, start and enable Docker daemon at system boot: $ sudo systemctl start dockerĥ. Now that the Docker repository is enabled, install the latest version of Docker CE by running: $ sudo yum install docker-ceĤ. Use the following command to set up the stable repository. $ yum install -y yum-utils device-mapper-persistent-data lvm2Ģ. So, use the below command to install the required packages. The device-mapper-persistent-data and lvm2 are required by the devicemapper storage driver. Prerequisitesīefore proceeding with this tutorial, you to need a user with sudo privileges to follow the Docker CE installation steps.īefore you install Docker CE, we have to install some required packages, although, you need to set up the Docker repository.ġ.

centos 7 install docker

In the second part of our Docker tutorial series, we’ll go through the necessary steps to installing Docker CE (Community Edition) on CentOS 7/ RHEL 7 and Ubuntu 18.04 LTS / Ubuntu 16.04 LTS.












Centos 7 install docker