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.
$ 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-urlor an equivalent flag, running an upgrade on that machine completely replaces the specified ISO with the latest “vanilla” boot2docker ISO available.
© 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.