![]() - I allows you to interact with standard input (stdin) within the container ![]() - V mount path local / data mount to container's / docker_ Data path Configure the installation environment Install CentOS (skip)īuild container docker run -v /data:/docker_data -p 80:80 -itd -privileged=true centos:v0.0.1 /usr/sbin/init Install docker Download and installĭownload address Configure image accelerationĭocker info 2. The life cycle of a container exists around the main process, so the correct way to use the container is to run the service in the foreground. The container itself is an independent main process on the host, which can also be indirectly understood as the application process running the service in the container. ![]() The design concept of docker is that the background service does not run in the container. Therefore, there should be a separate container for MySQL, PHP FPM and nginx.Ģ. The standard usage of docker is that each docker container provides only one service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |