我按照https://github.com/hypriot/rpi-node使用命令./build.sh构建了码头映像。
生成后可以看到以下图像:
REPOSITORY TAG IMAGE ID CREATED SIZE
hypriot/rpi-node 7.6.0-onbuild 3bc1143b2669 8 minutes ago 486MB
hypriot/rpi-node 7.6.0-slim f0e665843753 8 minutes ago 201MB
hypriot/rpi-node 7.6.0 561d1c96f866 9 minutes ago 486MB
hypriot/rpi-node 6.10.0-onbuild e914857026be 9 minutes ago 482MB
hypriot/rpi-node 6.10.0-slim 76f21b654bbb 9 minutes ago 197MB
hypriot/rpi-node 6.10.0 8358e50b084c 10 minutes ago 482MB
hypriot/rpi-node 4.8.0-onbuild d7d1ed3d2745 11 minutes ago 477MB
hypriot/rpi-node 4.8.0-slim fc4fcfe4dfe3 11 minutes ago 192MB
hypriot/rpi-node 4.8.0 0879c967512d 13 minutes ago 477MB试图使用6.10.0:sudo docker run hypriot/rpi-node:6.10.0运行映像不会返回任何输出,但是容器不会运行,因为执行docker ps会返回空响应。
如何启动rpi-node码头集装箱?
最新情况:
这似乎是修复:sudo docker run -dti hypriot/rpi-node:6.10.0 tail -f /dev/null
来源:Docker container will automatically stop after "docker run -d"
发布于 2017-05-22 16:07:55
这似乎是修复:sudo docker run -dti hypriot/rpi-node:6.10.0 tail -f /dev/null
发布于 2017-05-21 17:28:17
根据CMD的说法,这些图像似乎有默认的node值。只运行映像就会尝试执行node。这通常会运行Node.js REPL。但这需要一个互动终端。
尝试以sudo docker run -it hypriot/rpi-node:6.10.0的形式运行,以设置交互模式和TTY。
https://stackoverflow.com/questions/44099058
复制相似问题