Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #127

Merged
merged 1 commit into from
Aug 19, 2023
Merged

Update README.md #127

merged 1 commit into from
Aug 19, 2023

Conversation

MackDing
Copy link
Contributor

执行([root@PS2021WWURSRXY /data/Llama2-Chinese-main]# docker build -f docker/Dockerfile -t FlagAlpha/llama2-chinese-7b:gradio . invalid argument "FlagAlpha/llama2-chinese-7b:gradio" for "-t, --tag" flag: invalid reference format: repository name must be lowercase See 'docker build --help'.)报错.
Docker 镜像名称要求使用小写字母。根据错误信息显示,镜像名称中包含大写字母,所以需要将镜像名称中的大写字母改成小写字母。解决方法是:

将镜像名称 "FlagAlpha/llama2-chinese-7b:gradio" 中的大写字母全部改为小写字母,比如可以改成 "flagalpha/llama2-chinese-7b:gradio"。然后重新运行构建命令。

正确的构建命令应该是:
sudo docker build -f docker/Dockerfile -t flagalpha/llama2-chinese-7b:gradio .

执行([root@PS2021WWURSRXY /data/Llama2-Chinese-main]# docker build -f docker/Dockerfile  -t FlagAlpha/llama2-chinese-7b:gradio .
invalid argument "FlagAlpha/llama2-chinese-7b:gradio" for "-t, --tag" flag: invalid reference format: repository name must be lowercase
See 'docker build --help'.)报错.
Docker 镜像名称要求使用小写字母。根据错误信息显示,镜像名称中包含大写字母,所以需要将镜像名称中的大写字母改成小写字母。解决方法是:

将镜像名称 "FlagAlpha/llama2-chinese-7b:gradio" 中的大写字母全部改为小写字母,比如可以改成 "flagalpha/llama2-chinese-7b:gradio"。然后重新运行构建命令。

正确的构建命令应该是:
docker build -f docker/Dockerfile -t flagalpha/llama2-chinese-7b:gradio .
@Rayrtfr Rayrtfr merged commit f82d338 into LlamaFamily:main Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants