I have a question about how to proceed with the project using Docker.

Asked 1 years ago, Updated 1 years ago, 87 views

I have two questions! Nice to meet you!

I'm trying to build a LAMP environment in the ubuntu container, but I'm thinking of going with the following flow, but I don't know how to proceed with the work after 以降What should I do with merge in Git with Docker?

How do I consolidate my images into one after this?

Also, when building containers in 1 above,

service start apache2

If so, is it not necessary to execute the above command again when working on the above 5?(Generating a container from an image will take over all the settings of the container from which the image is based???)

Thank you for your cooperation.

apache ubuntu docker

2022-09-30 21:27

1 Answers

If you're going to make famous middleware, I think it's better to use the existing images for each music/W and connect them together with docker-compose.This time, it's LAMP, so I guess it's mySQL image and apache image.

Also, when you run a process on docker, I think it is common to write a script that runs the server itself directly instead of using it for service registration and startup, which is the normal method of starting middleware on Linux.

For example, apache docker image seems to have that configuration. Note: https://github.com/docker-library/httpd/blob/master/2.4/Dockerfile


2022-09-30 21:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.