Cannot start container : [8] System error: exec: "up3": executable file not found in $PATH

Cannot start container : [8] System error: exec: "up3": executable file not found in $PATH

我是 Stack Overflow 的新手,我在 Stack Overflow 中检查了类似的问题,但没有找到我期望的答案。所以希望我的问题不是太愚蠢。 创建容器后无法启动它。 我使用命令:docker start 6069dba3cb02 并收到以下错误消息:

root@boot2docker:/mnt/sda1/var/lib/docker/containers# docker start 6069dba3cb02
Error response from daemon: Cannot start container 6069dba3cb02: [8] System error: exec: "up3": executable file not found in $PATH
Error: failed to start containers: [6069dba3cb02]

容器信息如下:

即使我使用其他命令:“docker restart 6069dba3cb02”或“docker run ubuntu:14.04 up3”,我仍然得到错误

Docker 信息:操作系统:Boot2Docker 1.8.0 (TCL 6.3); 安装路径:https://github.com/boot2docker/windows-installer/releases

你想用参数up3实现什么?此命令在您刚刚启动的容器内执行。但是 Ubuntu 不知道这个命令,因为它根本不存在于普通的 Ubuntu 图像中(这就是错误消息所说的:executable file not found)。

因此,您必须先安装 up3 工具,然后才能尝试访问它。或者你对你的容器up3应该做什么有什么误解,我不知道。

尝试将 up3 替换为 ls / 或类似的东西,以了解当 运行 docker:

时最后一个参数的作用
docker run --rm ubuntu ls /

--rm 命令退出后删除容器。

要为您的容器命名 up3,您必须将其添加到您的命令中:

docker create --name up3 ubuntu:14.04

然后您可以按名称启动您的容器:

docker start up3