Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker install in centos u7

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

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce -y
sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
sudo docker -v
Comment

install docker on centos

# First add repo to yum config manager
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# Use added repo to install and start docker
sudo yum install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
# Optional: Validate by run sample image 
sudo docker run hello-world
Comment

cent os install docker

sudo yum install -y yum-utils

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

Install Docker CE on CentOS

sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user

#Makes docker to auto-start
sudo chkconfig docker on

#Installs git
sudo yum install -y git

#Reboots the system
sudo reboot
Comment

PREVIOUS NEXT
Code Example
Shell :: WARNING: UNPROTECTED PRIVATE KEY FILE! 
Shell :: bash remove duplicate lines from a file 
Shell :: gpu name command line linux 
Shell :: bash create file with content 
Shell :: certbot delete certificate 
Shell :: mac os check network ip 
Shell :: git merge binary files 
Shell :: install pyqt5 tools 
Shell :: edit last commit message 
Shell :: uninstall in linux 
Shell :: ssh remove known_hosts entry 
Shell :: bash multiple commands one line 
Shell :: linux check os version ubuntu or centos 
Shell :: git push force 
Shell :: command line how to find all files that have a string 
Shell :: bash for file in folder 
Shell :: kill port 80 linux 
Shell :: clockwork 
Shell :: force delete pod kubernetes 
Shell :: download notes app in ubuntu 
Shell :: phoenix version check 
Shell :: fedora install snapd 
Shell :: list active services ubuntu 
Shell :: node-gyp 
Shell :: read file using shell script 
Shell :: serve : File C:UsersMY PCAppDataRoaming pmserve.ps1 cannot be loaded because running scripts is disabled on this system 
Shell :: remove nvidia drivers ubuntu 
Shell :: kill port in windows 
Shell :: git log by date 
Shell :: composer list all installed packages 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =