Skip this unit if you already understand how to use Docker Desktop.
In this unit we’ll learn how to install Docker Desktop and basic operations.
The machine will need at least 4GB of memory.
Double-click Docker Desktop Installer.exe to run the installer.
Download the installer from Docker Hub.
It typically downloads to your Downloads folder, or you can run it from the recent downloads bar at the bottom of your web browser.
When prompted, ensure the Use WSL 2 instead of Hyper-V option on the Configuration page is selected or not depending on your choice of backend.
If your system only supports one of the two options, you will not be able to select which backend to use.
Follow the instructions on the installation wizard to authorize the installer and proceed with the install.
When the installation is successful, click Close to complete the installation process.
If your admin account is different to your user account, you must add the user to the docker-users group. Run Computer Management as an administrator and navigate to Local Users and Groups > Groups > docker-users. Right-click to add the user to the group. Log out and log back in for the changes to take effect.
The Docker documentation has additional details: https://docs.docker.com/desktop/install/windows-install/
For Macs with Intel chips, note that macOS must be version 10.15 or newer.
Double-click Docker.dmg to open the installer, then drag the Docker icon to the Applications folder.
Download the installer from Docker Hub.
Double-click Docker.app in the Applications folder to start Docker Desktop.
The task of pulling images from the Docker Hub repository and creating containers is best done using the Docker Command Line Interface.
Start by opening a command prompt window…
In Windows you can use either:
On Macs, use the Terminal app.
Everything is done using the docker command. In the following Windows example, the docker images command returns a list of images that have been pulled into the local Docker Desktop.
The following Docker commands are the most useful when working with the containerised FMR:
Docker command | Action |
---|---|
docker pull [image name] |
Pull the named image from Docker Hub downloading it to the local machine |
docker container create [container details] |
Create a container from a pulled image |
docker start [container name] |
Start the named container |
docker stop [container name] |
Stop the named container |
docker images |
List the pulled Docker images |
docker ps |
List the active containers |
docker ps -a |
List all containers including those that are inactive |
The Docker Desktop graphical user interface provides an alternative way to view and manage containers and images.
You’ll find it easier to use the graphical interface for the following tasks:
In the next unit we’ll learn how to use Docker command line to create a running FMR container.