[ 설치 ]
$ sudo apt update
$ sudo apt install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
$ apt-cache policy docker-ce
$ sudo apt install docker-ce
설치 확인
$ sudo systemctl status docker
[ 예제 실행 ]
$ mkdir cloudnatived
$ cd cloudnative
$ git clone https://github.com/cloudnativedevops/demo.git
$ cd ..
$ sudo docker container run -p 9999:8888 --name hello cloudnatived/demo:hello
웹브라우저 http://ip:9999 로 접속
도커설치 참조 :
https://blog.cosmosfarm.com/archives/248/%EC%9A%B0%EB%B6%84%ED%88%AC-18-04-%EB%8F%84%EC%BB%A4-docker-%EC%84%A4%EC%B9%98-%EB%B0%A9%EB%B2%95/
댓글 없음:
댓글 쓰기