Docker
This section provides an overview of Docker.
Docker is a platform for developers and sysadmins to build, run, and share applications with containers. The use of containers to deploy applications is called containerization. Containers are not new, but their use for easily deploying applications is.
Installation
- Go to Docker Desktop and download the installer
- Run the installer
- Follow the instructions on the installer, using the recommended settings
- Click
Close
when the installation is complete
Using Docker Desktop
Docker Desktop is where the containers are managed. You can see the status of the containers, start and stop them, and create new containers.
To start a container, click Start
next to the container you want to start.
To stop a container, click Stop
next to the container you want to stop.
DO NOT DELETE CONTAINERS. The containers are configured to run with the correct settings for the class. Deleting a container will delete all of the data in the container. If you accidentally delete a container, you must create a new container with the correct settings.
Saving Battery Life
Docker Desktop can be a battery hog. To save battery life, follow these steps:
- Inside docker, click the Settings icon in the top right corner
- Ensure
Start Docker Desktop when you sign in to your computer
is unchecked - In
Resources > Advanced
, setCPU limit
to 4, andMemory limit
to8.0 GB
- Scroll down while still in
Resources > Advanced
and checkEnable Resource Saver
. Then set it to30 sec
.
Docker will also run in the background when you close the app. You can tell by looking at the icon in the upper right corner of your screen. To close Docker Desktop fully, click the icon and Quit Docker Desktop
.