sudo curl -fsSL https://get.docker.com/ | sudo sh
sudo없이 사용
sudo usermod -aG docker $USER # 현재 접속중인 사용자에게 권한주기
도커 컴포즈 설치
권한 설정
sudo chmod +x /usr/local/bin/docker-compose
심볼릭 링크 설정
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
설치 확인
docker -v
docker-compose -v
전체 한꺼번에 진행
sudo curl -fsSL https://get.docker.com/ | sudo sh && sudo usermod -aG docker $USER && sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose && sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose && docker -v && docker-compose -v