我有這樣的應用程式,這是由另一個人制作的。
我對docker不太熟悉,我需要啟動應用程式。
目錄結構是這樣的,
/docker/amazon.Dockerfile
/firstapp/
/secondapp/
.gitignore
manage.py
所以,我試試這個命令 docker build docker/amazon.Dockerfile
錯誤來了。
failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: walk docker/aws.Dockerfile: not a directory
然后, docker build docker
這個錯誤來了,
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount426516845/Dockerfile: no such file or directory
我應該從哪里開始這個專案?
uj5u.com熱心網友回復:
使用這樣的東西:
docker image build -f docker/amazon.Dockerfile .
使用 -f 為 Dockerfile 指定自定義路徑,并以 . 需要為新的 docker 映像指定 docker 背景關系。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/407323.html
標籤:
上一篇:使用Docker的JMeter和JDBC驅動程式-“DBCP資料源配置沒有‘密碼’”mssql
下一篇:Docker埠映射怪異
