개요
본 문서에서는 Ubuntu 기반 Docker를 설치하는 과정에 대해 기술한다. 설치 과정에 대한 자세한 정보는 Docker 공식 Instructions를 참조한다.
apt update && \ apt install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common && \ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - && \ apt-key fingerprint 0EBFCD88 && \ add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" && \ apt update && \ apt install -y \ docker-ce \ docker-ce-cli \ containerd.io && \ reboot
특정 사용자에게 docker 권한 부여
usermod -aG docker <your-user>
재부팅이 요구된다.