upgrading.rst 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. .. _upgrading:
  2. Upgrading
  3. ============
  4. **These instructions are for upgrading Docker**
  5. After normal installation
  6. -------------------------
  7. If you installed Docker normally using apt-get or used Vagrant, use apt-get to upgrade.
  8. .. code-block:: bash
  9. # update your sources list
  10. sudo apt-get update
  11. # install the latest
  12. sudo apt-get install lxc-docker
  13. After manual installation
  14. -------------------------
  15. If you installed the Docker binary
  16. .. code-block:: bash
  17. # kill the running docker daemon
  18. killall docker
  19. .. code-block:: bash
  20. # get the latest binary
  21. wget http://get.docker.io/builds/Linux/x86_64/docker-latest.tgz
  22. .. code-block:: bash
  23. # Unpack it to your current dir
  24. tar -xf docker-latest.tgz
  25. Start docker in daemon mode (-d) and disconnect (&) starting ./docker will start the version in your current dir rather than a version which
  26. might reside in your path.
  27. .. code-block:: bash
  28. # start the new version
  29. sudo ./docker -d &
  30. Alternatively you can replace the docker binary in ``/usr/local/bin``