mirror of
https://github.com/docker/docs.git
synced 2026-03-29 23:38:56 +07:00
* Reword lots of instances of 'will' * Reword lots of instances of won't * Reword lots of instances of we'll * Eradicate you'll * Eradicate 'be able to' type of phrases * Eradicate 'unable to' type of phrases * Eradicate 'has / have to' type of phrases * Eradicate 'note that' type of phrases * Eradicate 'in order to' type of phrases * Redirect to official Chef and Puppet docs * Eradicate gratuitous 'please' * Reduce use of e.g. * Reduce use of i.e. * Reduce use of N.B. * Get rid of 'sexagesimal' and correct some errors
30 lines
1.1 KiB
Markdown
30 lines
1.1 KiB
Markdown
---
|
|
description: Upgrade Docker on a machine
|
|
keywords: machine, upgrade, subcommand
|
|
title: docker-machine upgrade
|
|
---
|
|
|
|
Upgrade a machine to the latest version of Docker. How this upgrade happens
|
|
depends on the underlying distribution used on the created instance.
|
|
|
|
For example, if the machine uses Ubuntu as the underlying operating system, it
|
|
runs a command similar to `sudo apt-get upgrade docker-engine`, because
|
|
Machine expects Ubuntu machines it manages to use this package. As another
|
|
example, if the machine uses boot2docker for its OS, this command downloads
|
|
the latest boot2docker ISO and replace the machine's existing ISO with the
|
|
latest.
|
|
|
|
```none
|
|
$ docker-machine upgrade default
|
|
|
|
Stopping machine to do the upgrade...
|
|
Upgrading machine default...
|
|
Downloading latest boot2docker release to /home/username/.docker/machine/cache/boot2docker.iso...
|
|
Starting machine back up...
|
|
Waiting for VM to start...
|
|
```
|
|
|
|
> **Note**: If you are using a custom boot2docker ISO specified using
|
|
> `--virtualbox-boot2docker-url` or an equivalent flag, running an upgrade on
|
|
> that machine completely replaces the specified ISO with the latest
|
|
> "vanilla" boot2docker ISO available. |