TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'
[root@test docker-compose]# /usr/local/python3/bin/docker-compose -f docker-compose.yml up -d
Traceback (most recent call last):
File "/usr/local/python3/bin/docker-compose", line 8, in
sys.exit(main())
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/main.py", line 200, in perform_command
project = project_from_options('.', options)
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/command.py", line 60, in project_from_options
return get_project(
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/command.py", line 152, in get_project
client = get_client(
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/docker_client.py", line 41, in get_client
client = docker_client(
File "/usr/local/python3/lib/python3.10/site-packages/compose/cli/docker_client.py", line 124, in docker_client
kwargs = kwargs_from_env(environment=environment, ssl_version=tls_version)
TypeError: kwargs_from_env() got an unexpected keyword argument 'ssl_version'
docker-compose 属于旧版v1的python包装器,新版v2 compose 是 Go 实现的,命令是docker compose
[root@test docker-compose]# docker compose -f docker-compose.yml up -d