Installing docker for mac, going through the settings and such briefly
Docker gives you this command to run from Docker for Mac.
It doesn't look like it does anything but it pulls the image, creates a container, starts the container, and daemonizes it. If we look at Docker for Mac, we can see it running along with some logs, etc.
You can continue to use the GUI with the caveat that you can't do everything with the GUI. We'll be covering the CLI in this course.
"running a container" involves many steps. When we do a
docker run docker first needs to check to see if the image to create the container from is available locally. If it's not, the docker engine will pull the image to your computer before creating and starting a container based on that image.
We just said we can start containers, so can we stop them?
What happens when we stop them? How do we restart them?
By default, Docker Hub owns the default namespace. This means if we go to Docker Hub we can find the list of official images. These images are often databases, but also contain different language and frameworks like Golang or node.js to different applications like WordPress.
docker save/docker load