位於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
將採取該行並從中
構建以下網址:
腳本使用以下內容創建配置文件/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
將下載並安裝軟件包。
這仍然不能解釋如何知道存儲庫。 – Guocheng 2015-02-07 13:50:02
您的聲明錯誤,'echo'命令不會複製'http:// get.docker.io/ubuntu'中的文本文件。 – 2015-02-24 11:30:15