我在一个ubuntu中用dockerfile创建的镜像,然后在这个ubuntu中都是正常使用的,但是我用commit打包tar之后,传到另外的一个ubuntu中,两个Ubuntu都是14.04版本的,在执行sudo docker run -d -p 9000:80 -t test/dvwa:1.0 /shell.sh的时候报错
FATA[0000] Error response from daemon: Cannot start container 48b570dccf88df88fd515aa9437920e65ec123602bc7c19c98876540890f413e: [8] System error: exec: "/shell.sh": stat /shell.sh: no such file or directory
但是这个shell.sh是有的,我写在docker的根目录下边的,在第一个Ubuntu中是正常运行的,为什么会出现这种情况呢?怎样才能使这个镜像新的Ubuntu中启动容器啊?
用sudo docker run -d -p 9000:80 -t test/dvwa:1.0 /bin/bash也是会报一样的错误