Upgrade the sharelatex container

sharelatex in docker

Posted by JXLIU on May 14, 2024

##升级 sharelatex

升级时遇到以下错误

1
Mongo instance doesn't support transactions

通过在 docker-compose.yml 中加入 command: --replSet rs0 解决。

1
2
3
4
5
# docker-compose.yml
mongo:
        restart: always
        image: mongo:4.4
        command: --replSet rs0