这是我的工作目录:
我运行以下命令将当前源代码目录挂载到节点容器内的/ var / www并运行节点npm start以启动应用程序;
但我得到上面的错误,不知道该怎么做:
@H_502_15@docker run -p 8085:3000 -v /home/joel/workspace/plural_docker_webdev:/var/www node -w "/var/www" node npm start
我收到这个错误:
@H_502_15@docker: Error response from daemon: OCI runtime create Failed: container_linux.go:296: starting container process caused "exec: \"-w\": executable file not found in $PATH": unknown. ERRO[0000] error waiting for container: context canceled
最佳答案