how to install docker on ubuntu 16.04 / 18.04
#> apt-get install ssh -y
ssh 서버 / 포트 오픈
#> apt-get install wget -y
wget 프로그램 설치
#> vi /etc/apt/sources.list
# deb cdrom:[Ubuntu-Server 16.04.6 LTS _Xenial Xerus_ - Release amd64 (20190226)]/ xenial main restricted
cdrom 부분 주석 처리 | 이 부분이 주석처리가 안되어 있으면 apt-get 사용 시 에러를 뿜으며 걸림
W: The repository 'cdrom://Ubuntu-Server 16.04.6 LTS _Xenial Xerus_ - Release amd64 (20190226) xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch cdrom://Ubuntu-Server 16.04.6 LTS _Xenial Xerus_ - Release amd64 (20190226)/dists/xenial/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
E: Some index files failed to download. They have been ignored, or old ones used instead.
#> apt-get update
#> apt-get install python3-pip -y
파이썬 ver3 설치
#> apt-get install -y docker.io
#> apt-get install apt-transport-https ca-certificates curl software-properties-common -y
#> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
OK 가 출력되어야함
#> add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
#> apt-get update
#> apt-cache policy docker-ce
#> apt-get install docker-ce -y
#> systemctl status docker