-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Upgrade docker-py to its latest version (docker==3.1.1) #3243
Conversation
Otherwise, to avoid that issue, I have to force |
|
The current server version is 1.7.1, server API version support is 1.19. No reason we can't upgrade, but this hasn't been a priority yet. I think this upgrade should be fine. We should also update the default version in our settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should hardcode the minimum client version, or I guess just 1.19
for now, in readthedocs.settings.DOCKER_VERSION
I hardcoded the Let me know if this is the way to go. Besides, there is another PR #2916 that tries to upgrade all the packages using |
On the other hand, |
We probably want to coordinate the upgrade of Docker with this PR. I'll create an issue in our provisioning. Blocking here for now. |
@agjohnson did you already upgrade the version in the server? Do you want me to replace Otherwise, what is missing here to merge the PR? |
dffc276
to
caff893
Compare
@agjohnson I upgraded to the latest docker and latest (possible) requests -- there is a bug on this lib that has a hotfix but it doesn't work very well and there are many users that can't upgrade to the latest requests because of this.
References: |
Cool. This probably looks good then. I'll plan on deploying the new docker next week and then going for this with the next deploys as well. |
requirements/pip.txt
Outdated
@@ -52,7 +55,7 @@ stripe==1.20.2 | |||
django-copyright==1.0.0 | |||
django-formtools==1.0 | |||
django-dynamic-fixture==1.8.5 | |||
docker-py==1.3.1 | |||
docker==2.6.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.7.0
is out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from its changelog it seems to be safe to use it https://docker-py.readthedocs.io/en/stable/change-log.html#
besides, I just tested it locally and it just works
Whoops, looks like tests are failing here. Let's see if we can get this into next week's deploy, along with the package upgrades. |
I think you made a mistake when you did the merge, since now we are importing
and it should be
I will take a deep look to the merge and fix it. |
Docker 3.1.1 is released, so I will try to upgrade to that one after fixing the conflicts. |
To QA this manually, you need to re-create the whole venv. Otherwise, you will find weird issues with the old |
@agjohnson I also removed the |
What is the functionality of |
@agjohnson https://docker-py.readthedocs.io/en/stable/client.html#docker.client.from_env
We can use a fixed one here without problem, but I'd suggest to query the docker version in our servers first and use the latest possible there. In my case, the
Also also, we don't have this version pinned for local development (we use but I would check the servers and pin it in our provisioning scripts. |
|
The default was |
Same, i have this pinned locally as well. |
To avoid this issue immediately after setting up the dev environment:
I tried updating the
docker-py
version used and the update the code when creating the container to set the propermem_limit
underhost_config
.Since I don't know what's the version of docker that we are running in production, maybe this PR is useless. Just in case, I'm pasting here what's my local version where it's working with this new upgrade.