2013-03-29 17:30:10 -07:00
|
|
|
.. _upgrading:
|
|
|
|
|
|
|
|
Upgrading
|
|
|
|
============
|
|
|
|
|
2013-04-22 13:10:32 -07:00
|
|
|
These instructions are for upgrading your Docker binary for when you had a custom (non package manager) installation.
|
|
|
|
If you istalled docker using apt-get, use that to upgrade.
|
2013-03-29 17:30:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
Get the latest docker binary:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2013-05-06 13:26:23 -07:00
|
|
|
wget http://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-latest.tgz
|
2013-03-29 17:30:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Unpack it to your current dir
|
|
|
|
|
|
|
|
::
|
|
|
|
|
2013-05-06 13:26:23 -07:00
|
|
|
tar -xf docker-latest.tgz
|
2013-03-29 17:30:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
Stop your current daemon. How you stop your daemon depends on how you started it.
|
|
|
|
|
|
|
|
- If you started the daemon manually (``sudo docker -d``), you can just kill the process: ``killall docker``
|
|
|
|
- If the process was started using upstart (the ubuntu startup daemon), you may need to use that to stop it
|
|
|
|
|
|
|
|
|
|
|
|
Start docker in daemon mode (-d) and disconnect (&) starting ./docker will start the version in your current dir rather
|
|
|
|
than the one in your PATH.
|
|
|
|
|
|
|
|
Now start the daemon
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
sudo ./docker -d &
|
|
|
|
|
|
|
|
|
2013-05-06 13:26:23 -07:00
|
|
|
Alternatively you can replace the docker binary in ``/usr/local/bin``
|