upgrading.rst 1.2 KB

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