Docker 클라이언트만 설치하기

1 개요[ | ]

도커 client만 설치하기
Docker CLI 클라이언트만 설치하기
최신 버전 설치
DOCKER_VERSION=$(curl -s https://api.github.com/repos/moby/moby/releases/latest | jq -r '.tag_name' | sed 's/^v//')
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz | tar zxvf - --strip 1 -C /usr/local/bin docker/docker
특정 버전 설치
DOCKER_VERSION=19.03.5
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz | tar zxvf - --strip 1 -C /usr/local/bin docker/docker
실행예시
root@localhost:~# docker version
bash: docker: command not found
root@localhost:~# DOCKER_VERSION=19.03.5
root@localhost:~# curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-$DOCKER_VERSION.tgz | tar zxvf - --strip 1 -C /usr/local/bin docker/docker
docker/docker
root@localhost:~# ll /usr/local/bin/docker
-rwxr-xr-x 1 1000 1000 65641786 Nov 13 16:30 /usr/local/bin/docker*
root@localhost:~# docker version
Client: Docker Engine - Community
 Version:           19.03.5
 API version:       1.40
 Go version:        go1.12.12
 Git commit:        633a0ea838
 Built:             Wed Nov 13 07:22:05 2019
 OS/Arch:           linux/amd64
 Experimental:      false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}