Skip to content

Commit 80a64ac

Browse files
committed
修改Entrypoint介绍章节中错别字“远了”为“原来”
1 parent af4ac70 commit 80a64ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/dockerfile/entrypoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $ docker run myip -i
3838
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"-i\\\": executable file not found in $PATH\"\n".
3939
```
4040

41-
我们可以看到可执行文件找不到的报错,`executable file not found`。之前我们说过,跟在镜像名后面的是 `command`,运行时会替换 `CMD` 的默认值。因此这里的 `-i` 替换了远了的 `CMD`,而不是添加在原来的 `curl -s http://ip.cn` 后面。而 `-i` 根本不是命令,所以自然找不到。
41+
我们可以看到可执行文件找不到的报错,`executable file not found`。之前我们说过,跟在镜像名后面的是 `command`,运行时会替换 `CMD` 的默认值。因此这里的 `-i` 替换了原来的 `CMD`,而不是添加在原来的 `curl -s http://ip.cn` 后面。而 `-i` 根本不是命令,所以自然找不到。
4242

4343
那么如果我们希望加入 `-i` 这参数,我们就必须重新完整的输入这个命令:
4444

0 commit comments

Comments
 (0)