报错现象:
error checking context: 'file ('/proc/2447/fd/7') not found or excluded by .
解决方法:
在Dockerfile文件所在的目录下创建一个文件(这里注意有个.直接复制即可):
touch .dockerignore
然后在里面写上一个*即可:
echo '*' > .dockerignore
重新构建镜像:
docker build it ----- .
镜像构建成功
报错现象:
error checking context: 'file ('/proc/2447/fd/7') not found or excluded by .
解决方法:
在Dockerfile文件所在的目录下创建一个文件(这里注意有个.直接复制即可):
touch .dockerignore
然后在里面写上一个*即可:
echo '*' > .dockerignore
重新构建镜像:
docker build it ----- .
镜像构建成功