- [Instructor] Docker offers frequent new updates
to Docker Community Edition and Enterprise Edition.
For example, Docker Community Edition
on the Edge channel generally has new releases every month.
With so many new releases from Docker
it's inevitable that you'll need to upgrade Docker.
Thankfully upgrading Docker is easy to do.
The first thing that I recommend that you do
is at the command line here
just learn about what version of Docker you have now.
For example, we have 17.06.2
and this is the Enterprise Edition.
On a production server of course
you would need to make sure
that you first back up Docker.
The Docker configuration files are stored
over in var/lib/docker.
If we go over and take a look at that folder
you can see these are all the folders
that present the Docker configuration.
Of special importance is the swarm folder
that holds the Docker Swarm configuration files
including the security certificates
for the Docker Swarm cluster.
So, you can easily archive these off
using tar or whatever method you'd like
to preserve the var/lib/docker folder structure.
From here you should run an apt-get update
to update all the packages
on your Docker host
and then from there you can essentially follow along
with the original Docker instructions
that you used to perform the installation of Docker.
For example, we were just on Docker Enterprise Edition
for Ubuntu and the first step here
in installing Docker
is to remove Docker,
so you would actually perform a removal
or an un-installation of Docker
and then you would go down and perform
the steps to install the latest version of Docker.
Once you uninstall and reinstall Docker,
your Docker host will be running the latest version
of Docker and it will be fully upgraded.