본문 바로가기
카테고리 없음

Rancher 설치

by Knowledge Store In Hyunsoft 2019. 10. 17.

 https://rancher.com/quick-start/

 

사전 준비 : centos 7 vm 3대.

 

1. 1번 vm에 docker 설치

sudo yum install -y 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 -y docker-ce-18.06.2.ce
sudo mkdir -p /etc/docker

#sudo cat << EOF > /etc/docker/daemon.json
head -c -1 <<EOF | sudo tee /etc/docker/daemon.json > /dev/null
{
  "graph": "/data/docker",
  "exec-opts": ["native.cgroupdriver=systemd"],
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m"
  },
  "storage-driver": "overlay2",
  "storage-opts": [
    "overlay2.override_kernel_check=true"
  ]
}
EOF

 

 

2.아래 명령어로 rancher 설치

sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher

3. 1번째 vm 서버에 접속  http://1vm

728x90

댓글