plasma icon indicating copy to clipboard operation
plasma copied to clipboard

Not able to run environment with the latest version of Docker

Open pierrepo opened this issue 1 year ago • 5 comments

Upgrading Docker from 24.0.5 to 27.1.0 led to the following error message while trying to run an environment:

image

According to this forum, this might be due to the way docker compose should be called from within ansible.

pierrepo avatar Jul 22 '24 13:07 pierrepo

@jtpio do you have any idea how to fix this issue?

pierrepo avatar Jul 22 '24 14:07 pierrepo

Not sure. Maybe updating the version of dockerspawner used here may help?

https://github.com/plasmabio/plasma/blob/1f8376231a693a01d466e273091a0afcf725b60f/tljh-plasma/setup.py#L9

jtpio avatar Jul 23 '24 08:07 jtpio

Thanks @jtpio I'm unsure how to implement / test this. Should I update the setup.py file and update plasma?

pierrepo avatar Jul 24 '24 10:07 pierrepo

Or maybe try to update dockerspawner manually to first see if that fixes the issue?

jtpio avatar Jul 24 '24 14:07 jtpio

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
$

pierrepo avatar Jul 24 '24 15:07 pierrepo

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

jtpio avatar Jun 04 '25 07:06 jtpio

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

Image

jtpio avatar Jun 11 '25 08:06 jtpio

@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).

jtpio avatar Jun 12 '25 07:06 jtpio