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

2.20.2+: Container recreate not working with Docker 24 and earlier #11882

Open
2 tasks done
jamescarppe opened this issue May 29, 2024 · 3 comments
Open
2 tasks done

2.20.2+: Container recreate not working with Docker 24 and earlier #11882

jamescarppe opened this issue May 29, 2024 · 3 comments
Assignees

Comments

@jamescarppe
Copy link
Member

jamescarppe commented May 29, 2024

Before you start please confirm the following.

Problem Description

When using Portainer 2.20.2 and above on a Docker 24 (and earlier) environment, the Recreate functionality for containers does not work and instead returns a 500 error.

Expected Behavior

Container recreation to succeed.

Actual Behavior

Container recreation fails with a 500 error:

{
    "message": "Error recreating container",
    "details": "Create container error: \"specify mac-address per network\" requires API version 1.44, but the Docker daemon API version is 1.43"
}

Steps to Reproduce

  1. Install Docker 24.0.6 (use the Specific versions instructions for your OS - Ubuntu example)

  2. Install Portainer 2.20.2 or above

  3. Log in and create a container (any will do, I used nginx)

  4. After the container has been created, attempt to recreate the container (go to the details page for the container and click the Recreate button)

Portainer logs or screenshots

No response

Portainer version

2.20.3

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

Docker 24.0.6

OS and Architecture

Ubuntu 20.04

Browser

No response

What command did you use to deploy Portainer?

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:2.20.3

Additional Information

This issue is a result of updates to the Docker client library that we include as part of Portainer. These updates occurred in 2.20.2 and were performed to resolve CVEs related to the client library. Versions below 2.20.2 (including 2.19.5) are unaffected by this issue.

Internal Ref: EE-7169

@zoc
Copy link

zoc commented Jun 8, 2024

Hi,

I'm facing a similar issue on a Synology NAS running docker 20.10.23 (deployed using the official Synology Apps repository). Could the root cause be the same ?

I don't know how to get detailed logs for the issues, so if someone could explain how to get those or redirect me to a page where I can find the instructions to do it it would be great.

Thank you.

@jamescarppe
Copy link
Member Author

I'm facing a similar issue on a Synology NAS running docker 20.10.23 (deployed using the official Synology Apps repository). Could the root cause be the same ?

Yes, this applies to Docker versions before 24 as well - I'll adjust the bug report to reflect that.

@jamescarppe jamescarppe changed the title 2.20.2+: Container recreate not working with Docker 24 2.20.2+: Container recreate not working with Docker 24 and earlier Jun 11, 2024
@lordimac
Copy link

This affects QNAP Container Station as well running docker 20.10.27.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants