linux 創建docker 鏡像時提示如下:
[root@VM_0_10_centos docker]# docker build -t jdk8 --rm=true .
unable to prepare context: unable to evaluate symlinks in Dockerfile path:
lstat /docker/Dockerfile: no such file or directory
開始以爲是自己的路徑錯誤,檢查各種地址。
最終發現是Dockerfile 名字錯誤,我定義的是DockerFile,所以要麼把文件名改成Dockerfile,要麼執行下面的命令
docker build -t docker-whale -f DockerFiler .