티스토리 뷰

___리눅스

[docker] docker install

변군 변군이글루 2020. 7. 26. 10:07

docker install

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ chmod +x get-docker.sh
$ sh get-docker.sh
$ usermod -aG docker $USER
$ docker version
Client: Docker Engine - Community
 Version:           19.03.12
 API version:       1.40
 Go version:        go1.13.10
 Git commit:        48a66213fe
 Built:             Mon Jun 22 15:45:36 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.12
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       48a66213fe
  Built:            Mon Jun 22 15:44:07 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

 

docker-compose install

- https://github.com/docker/compose/releases

$ curl -L https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
$ chmod +x /usr/bin/docker-compose
$ docker-compose version
docker-compose version 1.26.2, build eefe0d31
docker-py version: 4.2.2
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l  10 Sep 2019

- docker-compose 최신 버전 설정

curl -L https://github.com/docker/compose/releases/download/$(curl -s https://github.com/docker/compose/releases/latest | sed 's#.*tag/\(.*\)\".*#\1#')/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose && $ chmod +x /usr/bin/docker-compose

 

ctop install

- https://github.com/bcicen/ctop/releases

$ wget https://github.com/bcicen/ctop/releases/download/v0.7.3/ctop-0.7.3-linux-amd64 -O /usr/local/bin/ctop
$ chmod +x /usr/local/bin/ctop
$ ctop -v
ctop version 0.7.3, build 4741b27 go1.13.5
댓글
댓글쓰기 폼