Home > other >  Docker - Compose of the command should be how to use, there is a run statement how to Docker - Compo
Docker - Compose of the command should be how to use, there is a run statement how to Docker - Compo

Time:10-07

-command: covered container startup after the default execution order
Command: bundle exec thin - p 3000
The answer to this is I found on baidu, but the bundle exec thin what is specific content,
I have a line:
 
Docker run - it - d - v d:/dockerConfig/es_single/logstash config/:/usr/share/logstash config/- v d:/dockerConfig/es_single/logstash/conf., d/a:/usr/share/logstash/conf. D/-- network es_single_es_single - network - alias logstash -p 5044:5044 - p, 5045:5045 - name logstash73 logstash: 7.3.0/usr/share/logstash/bin/logstash -f/usr/share/logstash/conf. D/logstash. Conf

Direct execution, is able to run normally
But to docker - compose, especially the last sentence start statements, covered how to write docker - compose it?
 
Logstash:
Restart: always
Image: logstash: 7.3.0
Container_name: logstash73
Ports:
5044-5044:
5045-5045:
9600-9600:
Volumes,
- d:/dockerConfig/es_single/logstash config/:/usr/share/logstash/config/
- d:/dockerConfig/es_single/logstash/conf., d/a:/usr/share/logstash/conf. D/
Command:
-/usr/share/logstash/bin/logstash -f/usr/share/logstash/conf. D/logstash. Conf
Networks:
- es_single

With the execution, tip error:/usr/local/bin/docker - entrypoint: line 14:/usr/share/logstash/bin/logstash -f/usr/share/logstash/conf. D/logstash. Conf: No to the file or directory
  • Related