我想使用jupyter/base-notebook:latest图像。这是我的docker-compose.yml:
version: "3.7"
services:
notebook:
image: jupyter/base-notebook:latest
build:
args:
- NB_USER=appuser
- NB_UID=1001
- NB_GID=101
ports:
- "3010:8888"
volumes:
- "./notebooks:/home/appuser/work"
Run Code Online (Sandbox Code Playgroud)
当我运行时docker-compose up,我收到此错误:
Service notebook has neither an image nor a build context specified. At least one must be provided.
我该如何解决它?
我尝试在我的项目中翻译django-allauth消息。我已经创建了我的翻译文件。但我的翻译默认情况下不用于 django-allath 中存在的任何可翻译句子。看这里:
\n#: templates/account/logout.html:10\nmsgid "Are you sure you want to sign out?" # there are in django-allauth\nmsgstr "\xd9\x85\xd8\xb7\xd9\x85\xd8\xa6\xd9\x86\xdb\x8c \xd9\x85\xdb\x8c\xe2\x80\x8c\xd8\xae\xd9\x88\xd8\xa7\xd9\x87\xdb\x8c \xd8\xae\xd8\xa7\xd8\xb1\xd8\xac \xd8\xb4\xd9\x88\xdb\x8c\xd8\x9f"\n\n#: templates/account/logout.html:20\nmsgid "Cancel" # there aren\'t in django-allauth\nmsgstr "\xd9\x84\xd8\xba\xd9\x88"\nRun Code Online (Sandbox Code Playgroud)\n我在输出中得到这样的东西:
\n您确定要退出吗?-> 输出不是我想要的。django-allauth中有这句话。
\n取消 -> 输出就是我正在寻找的。django-allauth 中没有这句话
\n这是我的setting.py:
#: templates/account/logout.html:10\nmsgid "Are you sure you want to sign out?" # there are in django-allauth\nmsgstr "\xd9\x85\xd8\xb7\xd9\x85\xd8\xa6\xd9\x86\xdb\x8c \xd9\x85\xdb\x8c\xe2\x80\x8c\xd8\xae\xd9\x88\xd8\xa7\xd9\x87\xdb\x8c \xd8\xae\xd8\xa7\xd8\xb1\xd8\xac \xd8\xb4\xd9\x88\xdb\x8c\xd8\x9f"\n\n#: templates/account/logout.html:20\nmsgid "Cancel" # there aren\'t in django-allauth\nmsgstr "\xd9\x84\xd8\xba\xd9\x88"\nRun Code Online (Sandbox Code Playgroud)\n