Ah, yes, look at this, the end of another module.
Congratulations! You've really started to pick up a huge
amount about DevOps now and Linux.
We've been working with Docker containers, and we've seen that
images provide our golden images for containers.
We can use things like docker image search or docker image
pull to be able to search and download or pull our images.
When we're creating containers,
containers are runtime instances of those images, we use the
docker run command to create a container.
If the image doesn't exist,
we will pull it when we create the container. To build custom
images, we can create a Dockerfile and use the docker build
command. When creating containers, we can use port mappings to
map host ports to container ports.
And the same thing when we're creating our containers, we can have volume
maps to map host directories to container directories.
If those container directories don't exist, they'll be created dynamically.
And the last thing that we have here is just that security warning and
the group, docker. Members of the group docker then are not logged, and
we might find it becomes a security hole in not being able to audit who
did what with Docker. Whereas we use sudo, we're able to trace who has
done what. But there you go.
We know a little bit more about Docker, and we should be able to manage our
Docker environment, at least getting it up to the very basics. Now we're
almost finished, but we have one more module to go, and that module I really
look forward to introducing to you as we take a look at managing container
microservices using Kubernetes, and I look forward to seeing you and welcome you to that course very soon.