Today I upgraded docker successfully, following instructions from: http://askubuntu.com/questions/472412/how-do-i-upgrade-docker . However, when I opened the repository url https://get.docker.com/ubuntu/ in my browser, it is just a text page, which contains a list of bash commands.
My question is :
How apt works with this text page url?
Does apt simply run the bash commands? If so, why is there a same
command:"echo deb https://get.docker.com/ubuntu docker main >
/etc/apt/sources.list.d/docker.list" as that in
Best How To :
The page located at https://get.docker.com/ubuntu/ contains a script that can be used to install docker
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
apt-get install -y apt-transport-https
# 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 install -y lxc-docker
But this script is not used by
apt-get, it must be run manually.
The script creates the config file
/etc/apt/sources.list.d/docker.list with the following content:
deb https://get.docker.com/ubuntu docker main
apt-get update is run, the config file will be used and
apt-get update will take that line and build the following URL from it
The packages cache of the packages management system will be updated with the packages described in the
Maintainer: [email protected]
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 will download and install the packages.