Ask Your Question

Install Docker image with Python2

asked 2020-09-18 10:52:53 +0200

pgalashin gravatar image

updated 2021-01-05 20:28:19 +0200

FrédéricC gravatar image

I am trying to install a local Docker image of CoCalc, however, I'd like to keep using Sage-8.9 with Python2. Following the github instructions, I run

docker run --name=cocalc -d -v ~/cocalc:/projects -p 443:443 sagemathinc/cocalc

which results in Sage-9.1, so all my code stops working. How do I switch to Sage-8.9 with docker?

edit retag flag offensive close merge delete


I found the following solution:

docker run --name=cocalc -d -v ~/cocalc:/projects -p 443:443 sagemathinc/cocalc:67b7e8dece16

by viewing the "sagemathinc/cocalc" tags on But I don't know if this solution is permanent enough -- the tags listed there are only for the past 10 months

pgalashin gravatar imagepgalashin ( 2020-09-18 14:10:36 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-01-05 17:23:42 +0200

schilly gravatar image

Hi, I think the best solution is to fork the dockerfile configuration and modify the part that setups sage. In the git history, earlier revisions should show how 8.9 was built or well, more recent versions might build for python 2 as well. For more detailed support: license and support paragraph

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-09-18 10:52:53 +0200

Seen: 138 times

Last updated: Jan 05