我想dockerize我的应用程序运行shell,我想运行,为了进入我的容器,看包装是否正确安装,文件被复制等无法在我的容器
这里是我的Dockerfile:
FROM node:8.6
RUN mkdir /app
WORKDIR /app
COPY .*.json .
COPY src/ .
USER node
RUN yarn global add @angular/cli
EXPOSE 4200
的问题是,我无法通过docker run
运行我的容器:
docker run my-notes -it --rm ash
我看到的错误:
container_linux.go:262: starting container process caused "exec: \"-it\": executable file not found in $PATH"
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"-it\": executable file not found in $PATH".
ERRO[0000] error waiting for container: context canceled
我在做什么错?
另外'灰'不存在'节点'图片 – Matt
这是我的问题!非常感谢你! – TheOpti