Dockerfile报错

使用Dockerfile出现如下问题

[docker@bogon sinatra]$ docker build -t="ouruser/sinatra:gem" .
unable to prepare context: unable to evaluate symlinks in Dockerfile path:

lstat /home/docker/sinatra/Dockerfile: no such file or directory

解决方法:

指定dockerfile,使用-f ,比如:docker build -t="ouruser/sinatra:gem" -f Dockerfile .

 

posted @ 2019-02-22 16:52  国家一级开机运动员  阅读(3162)  评论(0编辑  收藏  举报