클라우드/Docker
-
[Docker] 실습클라우드/Docker 2021. 3. 8. 20:16
$ sudo docker network create --subnet 192.168.100.0/24 --gateway 192.168.100.254 alpha $ docker network ls NETWORK ID NAME DRIVER SCOPE 11b17a448e68 alpha bridge local ecac5a21a46c bridge bridge local $ sudo docker volume create web_vol $ sudo docker volume create db_vol $ sudo docker run -d --name web1 -v web_vol:/usr/local/apache2/htdocs:ro --network alpha httpd:latest $ docker inspect web1 "M..
-
[Docker] Centos7에서 docker 설치클라우드/Docker 2021. 3. 5. 18:48
참고 docs.docker.com/engine/install/centos/ 1. 사전 패키지 설치 $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2 2. yum 저장소 설정 $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 3. docker engine 설치 $ sudo yum install -y docker-ce docker-ce-cli containerd.io 4. 서비스 실행 및 활성화 $ sudo systemctl start docker *서비스가 부팅 이후에도 동작하도록 활성화 $ sudo systemctl en..