Now Docker Desktop is the recommended way
of running Docker on macOS and Windows,
but it's not a available on every system.
If you go to the Developer Docs part here
on the Docker page.
So if you visit docs.docker.com
you can click on Download and install.
And there you see the requirements for using Docker Desktop,
both for Windows as well as for Mac.
Now the good thing is for macOS
most systems support Docker Desktop.
If you have Mac hardware newer than 2010
and you fulfill all these requirements, you will be fine.
For Docker desktop for Windows,
you need Windows 10 essentially,
as you saw in the last lecture as well.
But if you don't fulfill these requirements
there is an alternative available for you.
There is a tool named Docker Toolbox
which you can then use instead of Docker Desktop.
If you google for docker toolbox
you should find these Toolbox installation instructions.
It's a legacy tool because it's not recommended
that you use it anymore
because it was replaced
by Docker Desktop for Mac and Windows.
Historically Docker Toolbox was the only solution
for all platforms.
Nowadays, we have to more modern Docker Desktop solution.
But for older systems that's not available
so therefore there
you need to stick to Docker Toolbox.
Now what is Docker Toolbox?
The Docker tool runs natively on Linux
and to make it work on macOS or Windows
you in the end need a virtual machine.
So a machine simulated on your machine
which holds a Linux installation in which Docker can run.
Now Docker Desktop for both Mac and Windows
uses built-in operating system features for that.
But older versions don't have these features.
That's why you then need
to install a virtual machine manually
and install Docker inside of that machine.
And that's in the end what Docker Toolbox helps you with.
So, how do you use Docker Toolbox then?
Well, first of all, you might want to verify
that you really can't use Docker Desktop
but if you are at this point that you can't use it
you can follow the instructions on this page.
And on this page, you, for example,
can find out how to check whether your system supports
the virtualization which is needed.
For example, how to check it on Windows 8.
If you don't fulfill the requirements listed here,
you unfortunately can't use Docker on your system
because you will not be able to install Docker Toolbox.
And that is the last possible way of getting Docker to run.
So make sure you check these requirements on Windows 8.
For Windows 7, make sure you use a tool like Speccy
or the Hardware-Assisted Virtualization Detection Tool.
And once you know that you are able to run a virtual machine
you can install Docker Toolbox.
On macOS, by the way, check the Install Toolbox on Mac here
to find all the installation steps there
though in general,
these are the same steps as shown on Windows.
So I will show it on Windows here,
but this would be your macOS steps
if you need to install Docker Toolbox on macOS,
because you can't use Docker Desktop.
Now, how does this work?
First of all, you need to go to the Toolbox Releases page
and download the latest version there
and simply download the executable for Windows
and the package file for macOS.
So here I'll go with the executable for Windows
and this will now install everything you need to install
to get Docker to run on your older Windows machine
or on your older macOS machine.
You find detailed installation instructions on
the page we just visited by the way.
So definitely make sure you also check these steps here
in case you should get stuck.
So let's wait for this download to complete.
And once it did complete, we can execute this installer
which we downloaded.
In that installer, simply walk through the different steps
and pick a location where that should be installed
on your system.
Click Next
and then make sure you have all these things checked.
Docker Toolbox needs VirtualBox for example,
which is a tool that creates a virtual machine
on your system.
And you should also ensure
that all the other tools here are being installed.
So click Next, then
you can decide whether you want the desktop shortcut or not.
You should definitely keep the second option check though
that Docker binaries are added to your path.
And you can in general go with the default settings here.
So let's click Next and Install.
And this will now install
and set up all the tools Docker needs
to bring up that virtual machine
in which Docker then is able to run.
Now, eventually this will be installed.
And you can then click Finish
and it should open up this folder
with some shortcuts you can use to basically start Docker.
You can simply click the Docker Quickstart Terminal here
and this will open up a terminal
in which you then can run the Docker command.
Now you see for me, I'm not able to start it
because I have Hyper-V enabled on my machine
and therefore I should not use Docker Toolbox.
But if you can't use Hyper-V,
if you can't use Docker Desktop therefore
you should instead see something like this,
and you will have an environment
in which you can run Docker commands.
So where you then for example, can run Docker
to see a list of all commands
or execute all the different Docker commands
you will see throughout this course.
And that is it.
This is then your environment
in which you can work to run Docker commands
and to work with containers as shown throughout the course.
What you'll learn about Docker will be the same
as if you used Docker Desktop.
So the concepts are all the same.
It's really just the environment
in which you run Docker, which is different.
And as mentioned multiple times, if you get any chance
of upgrading to Docker Desktop, definitely do that.
It offers greater performance,
doesn't clutter your system as much.
And overall is the recommended environment
for running Docker.