Qianlitp / WatchAD

AD Security Intrusion Detection System
GNU General Public License v3.0
1.29k stars 295 forks source link

運行docker-compose up 報錯,請問怎麼處理 #39

Closed sharlove closed 3 years ago

sharlove commented 3 years ago

[root@test soft]# docker-compose up Starting soft_watchad_elasticsearch_1 ... soft_watchad_mongo_1 is up-to-date Creating soft_watchad_logstash_1 ... soft_watchad_rabbitmq_1 is up-to-date

Starting soft_watchad_elasticsearch_1 ... error Starting soft_watchad_redis_1 ... WARNING: Host is already in use by another container

ERROR: for soft_watchad_elasticsearch_1 Cannot start service watchad_elasticsearch: driver failed programming external connectivity on endpoint soft_watchad_elasticsearch_1 (00ae16186c844e2b45587140f5723b507a9d51421674bea653cd89db046284fd): Bind for 0.0.0.0:9200 failed: port is already allocated Starting soft_watchad_redis_1 ... error

ERROR: for soft_watchad_redis_1 Cannot start service watchad_redis: driver failed programming external connectivity on endpoint soft_watchad_redis_1 (1fb2de77ad4e621880f62bf79c41fdb29e9221b1dd23e655ebcc3d7905d1f619): Bind for 0.0.0.0:6379 failed: port is already allocated

ERROR: for watchad_logstash "host" network_mode is incompatible with port_bindings

ERROR: for watchad_elasticsearch Cannot start service watchad_elasticsearch: driver failed programming external connectivity on endpoint soft_watchad_elasticsearch_1 (00ae16186c844e2b45587140f5723b507a9d51421674bea653cd89db046284fd): Bind for 0.0.0.0:9200 failed: port is already allocated

ERROR: for watchad_redis Cannot start service watchad_redis: driver failed programming external connectivity on endpoint soft_watchad_redis_1 (1fb2de77ad4e621880f62bf79c41fdb29e9221b1dd23e655ebcc3d7905d1f619): Bind for 0.0.0.0:6379 failed: port is already allocated Traceback (most recent call last): File "docker-compose", line 3, in File "compose/cli/main.py", line 81, in main File "compose/cli/main.py", line 203, in perform_command File "compose/metrics/decorator.py", line 18, in wrapper File "compose/cli/main.py", line 1186, in up File "compose/cli/main.py", line 1182, in up File "compose/project.py", line 702, in up File "compose/parallel.py", line 108, in parallel_execute File "compose/parallel.py", line 206, in producer File "compose/project.py", line 688, in do File "compose/service.py", line 564, in execute_convergence_plan File "compose/service.py", line 480, in _execute_convergence_create File "compose/parallel.py", line 108, in parallel_execute File "compose/parallel.py", line 206, in producer File "compose/service.py", line 478, in File "compose/service.py", line 457, in create_and_start File "compose/service.py", line 334, in create_container File "compose/service.py", line 941, in _get_container_create_options File "compose/service.py", line 1073, in _get_container_host_config File "docker/api/container.py", line 598, in create_host_config File "docker/types/containers.py", line 339, in init docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings [100586] Failed to execute script docker-compose