Pada hari ini saya akan membahas cara install deocker di centos 7, langsung saja kita mulai .
- Install Repo docker
yum install yum-utils curl wget nano -y
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum update -y
2. Install Docker
yum install docker-ce docker-ce-cli containerd.io -y
systemctl start docker
systemctl enable docker
docker --version
3. Install docker Compose
curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version