2013-05-21 13:47:16 -04:00
|
|
|
:title: Upgrading
|
|
|
|
:description: These instructions are for upgrading Docker
|
|
|
|
:keywords: Docker, Docker documentation, upgrading docker, upgrade
|
|
|
|
|
2013-03-29 20:30:10 -04:00
|
|
|
.. _upgrading:
|
|
|
|
|
|
|
|
Upgrading
|
|
|
|
============
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
**These instructions are for upgrading Docker**
|
2013-03-29 20:30:10 -04:00
|
|
|
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
After normal installation
|
|
|
|
-------------------------
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
If you installed Docker normally using apt-get or used Vagrant, use apt-get to upgrade.
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# update your sources list
|
|
|
|
sudo apt-get update
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# install the latest
|
|
|
|
sudo apt-get install lxc-docker
|
2013-03-29 20:30:10 -04:00
|
|
|
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
After manual installation
|
|
|
|
-------------------------
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
If you installed the Docker binary
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# kill the running docker daemon
|
|
|
|
killall docker
|
2013-03-29 20:30:10 -04:00
|
|
|
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# get the latest binary
|
|
|
|
wget http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz
|
2013-03-29 20:30:10 -04:00
|
|
|
|
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# Unpack it to your current dir
|
|
|
|
tar -xf docker-latest.tgz
|
|
|
|
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
Start docker in daemon mode (-d) and disconnect (&) starting ./docker will start the version in your current dir rather than a version which
|
|
|
|
might reside in your path.
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
.. code-block:: bash
|
2013-03-29 20:30:10 -04:00
|
|
|
|
2013-05-15 19:11:59 -04:00
|
|
|
# start the new version
|
2013-03-29 20:30:10 -04:00
|
|
|
sudo ./docker -d &
|
|
|
|
|
|
|
|
|
2013-05-06 16:26:23 -04:00
|
|
|
Alternatively you can replace the docker binary in ``/usr/local/bin``
|