[Docker] Install Docker on Ubuntu
Docker install on Ubuntu
[1] ์ฌ์ ์ค๋น
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
[2] Docker ์ค์น
$ sudo apt-get install docker-ce
- Docker์์ Hello world
$ docker container run ubuntu:latest /bin/echo 'Hello World!'
permission denied ์ค๋ฅ๊ฐ ๋จ๋ฉด
$ sudo chmod 666 /var/run/docker.sock