Please tell us about dockerfileI don't understand the meaning of the last line.
I tried to explain the dockerfile.Error message
Applicable source code
Bring centOS from the official docker image. Install http daemon (Apache) with yum package. Copy index.html in the current directory to the Apache data storage location. Open the 80 and 443 ports of the container. ** Apache httpd program, foreground? (The background is because D is on?) **
I want to hear most
FROM centos: latest RUN yum install -y httpd COPY ./index.html /var/www/html/index.html EXPOSE 80 443 CMD ["/ usr/sbin/httpd", "-D" "FOREGROUND"]
I don't understand the meaning of the last line, whether it is foreground or background, and what does background mean in the first place? Please kindly advise.
Answer # 1
The meaning of
-D FOREGROUNDis written in
- postgresql - i don't understand the meaning of the command during the postgresapp installation procedure
- css - i don't understand the meaning of this [transition: all 03s;] what can you do?
- why linux command leaves space after command
- c ++ - i don't understand the meaning of "::" in the code
- about mkdir command in alpine linux
- python - i don't understand the meaning of the code could you please tell me?
- linux - rclone command is not executed in crontab
- java - i don't understand the meaning of the array problem
- linux - display order of the find command
- linux - cannot use yum command
- linux - create zip file from the result of find command
- php - i do not understand the meaning of "-" (hyphen) before and after alert
- linux - the yum command cannot be used on hyper-v
- linux - virtualbox + centos8 dnf command gives error
- i want to browse two lists using shell (linux command) and extract specific lines that match
- i want to break the log every date by linux command
- swift - i do not understand the meaning of the class specification in the type in the variable declaration
- Linux file management command example analysis [display, view, statistics, etc]
- android studio - i don't understand the meaning of the error
- linux - about the "bs" option of the dd command
- linux : Docker PostgreSQL does not start when mounting the folder
- linux : Nginx does not proceed on Apache in Docker-E
- linux : In DockerFile add a large number of env using a file
- Docker Mysql-Server 5.5
- linux : The first time you ask the question in the middle of the command, the first is YES, and the second is NO
- linux : Error creating Django project using docker-compose run
- linux : Error loading Docker image
- Reverse-proxy for SQL Server
- linux - if you turn off the power of the host pc while the docker container is running, the data in the host pc directory mounte
- linux - how to display and arrange the docker icon on centos8 desktop?