gpt4 book ai didi

docker - 执行docker-compose时发生崩溃错误

转载 作者:行者123 更新时间:2023-12-02 18:31:08 27 4
gpt4 key购买 nike

我执行了命令

docker-compose down

并得到这个错误
Traceback (most recent call last):
File "bin/docker-compose", line 3, in <module>
File "compose/cli/main.py", line 68, in main
File "compose/cli/main.py", line 115, in perform_command
File "compose/cli/command.py", line 37, in project_from_options
File "compose/cli/command.py", line 91, in get_project
File "compose/config/config.py", line 362, in load
File "compose/config/config.py", line 528, in process_config_file
File "compose/config/validation.py", line 378, in
validate_against_config_schema
File "compose/config/validation.py", line 439, in handle_errors
File "compose/config/validation.py", line 439, in <genexpr>
File "compose/config/validation.py", line 365, in
process_config_schema_errors
File "compose/config/validation.py", line 237, in handle_generic_error
File "compose/config/validation.py", line 305, in
_parse_oneof_validator
File "compose/config/validation.py", line 320, in
_parse_oneof_validator
File "compose/config/validation.py", line 285, in
_parse_valid_types_from_validator
File "compose/config/validation.py", line 201, in anglicize_json_type
e
AttributeError: 'bool' object has no attribute 'startswith'
Failed to execute script docker-compose

我不知道发生了什么,昨天一切都很好,然后今天就出了错,没有任何原因。
Docker version 17.06.0-ce, build 02c1d87
docker-compose version 1.14.0, build c7bdf9

最佳答案

最后,解决了问题。但不幸的是,我不知道我到底做了什么。
我执行了以下命令:

pip freeze | grep docker

并看到我在Python中有docker,docker-compose,docker-py软件包,但是我在系统(Ubuntu)中仍然有docker,docker-compose。也许他们在某处造成了一些冲突。
所以我在python中卸载了所有与docker相关的docker软件包。

之后,我停止所有在docker中运行的容器(不再使用docker-compose,我不再使用互联网上的一些命令),删除几乎容器的配置,然后再次运行docker-compose。有用。

所以我添加了透 View 容器的配置,将Nginx容器的配置添加到docker-compose.yml时,问题再次出现。所以我改变了nginx的配置,问题就解决了

关于docker - 执行docker-compose时发生崩溃错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44939924/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com