기술개발/AWS
AWS EC2 인스턴스에 docker, docker-compose 설치
한승욱
2021. 3. 29. 19:35
반응형
Docker
도커 설치
$ sudo apt install docker.io
$ docker -v
Docker version 19.03.8, build afacb8b7f0
도커 시작하기
$ sudo service docker start
사용자 추가
$ sudo usermod -aG docker ubuntu
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
실행 권한 적용
sudo chmod +x /usr/local/bin/docker-compose
설치 확인
$ docker-compose --version
docker-compose version 1.26.2, build eefe0d31
반응형