Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch from docker-compose to docker compose in docs #646

Open
dot-mike opened this issue Jul 8, 2024 · 0 comments
Open

switch from docker-compose to docker compose in docs #646

dot-mike opened this issue Jul 8, 2024 · 0 comments
Assignees

Comments

@dot-mike
Copy link

dot-mike commented Jul 8, 2024

docker-compose command in the documentation is using Docker Compose version 1 which is deprecated and replaced by Docker Compose v2 implemented in the sub command docker compose. See migration guide for v2 here.

Trying to follow the documentation to run the container stack with docker results in an error as shown below.
The cause of this is changes made in the underlying docker python API version 7.0.0.

docker-compose up
Traceback (most recent call last):
  File "/usr/bin/docker-compose", line 33, in <module>
    sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
  File "/home/mike/.local/lib/python3.10/site-packages/compose/cli/main.py", line 81, in main
    command_func()
  File "/home/mike/.local/lib/python3.10/site-packages/compose/cli/main.py", line 200, in perform_command
    project = project_from_options('.', options)
  File "/home/mike/.local/lib/python3.10/site-packages/compose/cli/command.py", line 60, in project_from_options
    return get_project(
  File "/home/mike/.local/lib/python3.10/site-packages/compose/cli/command.py", line 152, in get_project
    client = get_client(
  File "/home/mike/.local/lib/python3.10/site-packages/compose/cli/docker_client.py", line 41, in get_client
    client = docker_client(
  File "/home/mike/.local/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'
@dot-mike dot-mike changed the title switch docker-compose to docker compose switch from docker-compose to docker compose in docs Jul 8, 2024
@mikedep333 mikedep333 self-assigned this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

2 participants