ComeçarComece de graça

Passing a file to a running container

Your manager is pleased at your new knowledge of Docker data sharing and comes by with a scenario they'd like you to investigate. The primary application from your company is named crane and has been recently containerized by your department. This application is personalized for each of your company's customers and, thus far, has required building and maintaining a separate container image for each client. Your manager would like you to find a method to simplify this process.

After reviewing the container configuration, you see that each container image looks for a file named customerdata.json within the image. This file holds the specific customer information and must be placed into each image at build time.

Este exercício faz parte do curso

Intermediate Docker

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício