1. 도커 설치
sudo apt install docker.io // 도커 설치
docker -v // 도커 버전 확인
2. 도커 시작
sudo service docker start
3. 사용자 추가
sudo usermod -aG docker ubuntu
4. docker-compose 설치
$ sudo curl \
> -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" \
> -o /usr/local/bin/docker-compose
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 633 100 633 0 0 2131 0 --:--:-- --:--:-- --:--:-- 2131
100 11.6M 100 11.6M 0 0 6644k 0 0:00:01 0:00:01 --:--:-- 12.5M
5. 실행 권한 적용
sudo chmod +x /usr/local/bin/docker-compose
6. docker-compose 설치 확인
$docker-compose --version
docker-compose version 1.26.2, build eefe0d31
REFERENCE
https://wooogy-egg.tistory.com/55
'Docker' 카테고리의 다른 글
[Docker] 도커 명령어 모음 (0) | 2020.02.03 |
---|---|
Docker(도커)란? (0) | 2020.01.07 |
최근댓글