# 아래의 curl 스크립트를 실행한다.
$ curl -fsSL get.docker.com -o get-docker.sh
$ /bin/bash get-docker.sh
$ docker -v
혹은
$ yum install docker-ce docker-ce-cli containerd.io
[edaily_dev@localhost 04_docker]$ sudo docker version
Client: Docker Engine - Community
Version: 20.10.6
API version: 1.41
Go version: go1.13.15
Git commit: 370c289
Built: Fri Apr 9 22:44:36 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
https://docs.docker.com/compose/
# docker-compose 설치
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# docker-compose 실행 권한 부여
$ sudo chmod +x /usr/local/bin/docker-compose
# 설치된 docker-compose 실행 확인
$ [edaily_dev@localhost data]$ docker-compose --version
docker-compose version 1.29.1, build c34c88b2
'프로그래밍 > Linux' 카테고리의 다른 글
[Linux] using rsync command (0) | 2022.11.01 |
---|---|
[Domain] Public IP Check (0) | 2022.10.31 |
[Docker] Docker permission deny 해결법 (0) | 2022.10.20 |
Rocky Linux 9에 Docker 및 Docker-Compose를 설치하는 방법 (0) | 2022.08.16 |
Install Docker and Docker-compose on CentOS7 (0) | 2022.01.13 |