From the course: Building a Home IT Lab

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Working with Docker

Working with Docker

- [Instructor] Docker lets us create and run containers that start up from file system images. So every container needs an image and there are many images out there to choose from, or we can create our own. We can search prebuilt images in the browser by visiting hub.docker.com/search. Or we can use the docker search command in the terminal. Many containers use the small and lightweight Alpine Linux distribution and we can download a minimal Alpine image to use as the base of a custom image. Let's use Docker search to look for the Alpine images. I'll write Docker, search Alpine. And here, I can see quite a few images based on Alpine. For example, this one contains a MySQL client. This one contains open SSL and so on. This one here at the top is a minimal image based on Alpine Linux, and that's a great starting point for small lightweight containers. So let's download that image. To do that, I'll write docker pull alpine. Okay, I'll clear the screen. Now we have our image stored…

Contents