Not able to run environment with the latest version of Docker
Upgrading Docker from 24.0.5 to 27.1.0 led to the following error message while trying to run an environment:
According to this forum, this might be due to the way docker compose should be called from within ansible.
@jtpio do you have any idea how to fix this issue?
Not sure. Maybe updating the version of dockerspawner used here may help?
https://github.com/plasmabio/plasma/blob/1f8376231a693a01d466e273091a0afcf725b60f/tljh-plasma/setup.py#L9
Thanks @jtpio I'm unsure how to implement / test this. Should I update the setup.py file and update plasma?
Or maybe try to update dockerspawner manually to first see if that fixes the issue?
Something like:
sudo /usr/bin/python3 -m pip install --upgrade dockerspawner
Oddly, dockerspawner is not present in the current Python installation...
$ /usr/bin/python3 -m pip list | grep spawner
$
Some notes. The tljh-repo2docker plugin seems to be accessing ContainerConfig here:
https://github.com/plasmabio/tljh-repo2docker/blob/e1d92a94a0ae72266a98cfb99dbd2f7461606075/tljh_repo2docker/init.py#L137
Also there are two new versions of dockerspawner available, one of them includes a security fix: https://jupyterhub-dockerspawner.readthedocs.io/en/latest/changelog.html
Ah, looks like https://github.com/plasmabio/tljh-repo2docker/pull/103 and related link may be relevant:
https://docs.docker.com/engine/deprecated/#container-and-containerconfig-fields-in-image-inspect
@pierrepo curious if you still have the server / environment where this error happens.
If so, maybe it could be worth trying the patch from https://github.com/plasmabio/tljh-repo2docker/pull/103 by manually modifying the related file on the server, and then restart everything.
Curious if that would solve the issue, while waiting for all the updates from https://github.com/plasmabio/plasma/pull/224 (which may take more time).