From the course: Microservices: Security
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Image security
- [Teacher] When securing microservices in containers, a lot of attention is paid to the runtime configuration. However, we need to keep in mind that securely building and sourcing images is just as important. Images are built from instructions found in a Dockerfile. These instructions add our microservice to the image and configure it to run the service. You can think of a Dockerfile almost like source code for an environment. Once the Dockerfile is ready, it is built into a container image which is similar to how developers compile the source code for an object into a class. When we are ready to run the image, an instance of it known as a container is created, and it is ran on the container engine. If you're a developer, this is like creating an instance of a class. Just like classes in object-oriented programming, you can use a class written by another developer, you can build your own or a combination of the two.…