7 step Install Docker on Centos 7 Google Compute Engine - GCP | ILMU PROGRAMMER
Home » 7 step Install Docker on Centos 7 Google Compute Engine – GCP

7 step Install Docker on Centos 7 Google Compute Engine – GCP

INSTAL DOCKER ON CENTOS 7
Google Compute Engine GCP
7 Steps:

yum update
yum install yum-utils
yum-config-manager — add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker
sudo yum install docker-compose
sudo service docker start
docker -v

INSTALL NGINX

docker run --name mynginx2 --mount type=bind,source=/var/www,target=/usr/share/nginx/html,readonly --mount source=/var/nginx/conf,target=/etc/nginx/conf,readonly -p 80:80 -d nginx

MASUK CONTROLER ID

docker exec -it 5f62cb40491d /bin/bash

EXIT CONTROLER ID

CTRL + D

Leave a Comment

 
Open chat
Perlu Bantuan Konsultasi ?
Hallo Pembaca.
Telp (021) 55670115 untuk terhubung langsung dengan kami.

Apakah ada yang bisa kami bantu?