https://get.docker.com/ubuntu/에있는 페이지가 고정 표시기
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get update
apt-get install -y apt-transport-https
fi
# Add the repository to your APT sources
echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list
# Then import the repository key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# Install docker
apt-get update
apt-get install -y lxc-docker
을 설치하는 데 사용할 수있는 스크립트를 포함하지만,이 스크립트는 하지 apt-get
에서 사용, 그것은 수동으로 실행해야합니다.
deb https://get.docker.com/ubuntu docker main
실행하면
apt-get update
,이 설정 파일이 사용됩니다
및 apt-get update
그 라인을 가지고
그것에서 다음 URL을 구축 할 것입니다 :
스크립트는 다음과 같은 내용으로 구성 파일 /etc/apt/sources.list.d/docker.list
을 만듭니다
https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages
패키지 관리 시스템의 패키지 캐시는 Packages
파일에 설명 된 패키지로 업데이트됩니다.
Package: lxc-docker
Version: 1.5.0
License: Apache-2.0
Vendor: none
Architecture: amd64
Maintainer: [email protected]
Installed-Size: 0
Depends: lxc-docker-1.5.0
Homepage: http://www.docker.com/
Priority: extra
Section: default
Filename: pool/main/l/lxc-docker/lxc-docker_1.5.0_amd64.deb
Size: 2092
SHA256: 2e8b061216cc45343197e52082175bc671af298d530652436dc16d0397f986f0
SHA1: 24a0314bd7f6fdf79b69720de60be77510d689af
MD5sum: 923cad1a2af2d6b0a3e8fa909ba26ca4
Description: Linux container runtime Docker complements LXC with a high-level API which operates at the process level. It runs unix processes with strong guarantees of isolation and repeatability across servers. Docker is a great building block for automating distributed systems: large-scale web deployments, database clusters, continuous deployment systems, private PaaS, service-oriented architectures, etc.
....
마지막으로 apt-get upgrade
은 패키지를 다운로드하고 설치합니다.
이것은 apt가 저장소를 어떻게 아는지를 설명하지 못합니다. – Guocheng
당신의 진술이 잘못되었습니다.'echo' 명령은'http : // get.docker.io/우분투'의 텍스트 파일을 복사하지 않습니다. –