docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile
docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile
Here is how to specify dockerfile. Sorry I cannot do it in comments as formatting is not supported over there.
https://docs.docker.com/compose/compose-file/#context
app: build: context: app dockerfile: Dockerfile
‘./docker-compose.yml‘, service must be a mapping, not a NoneType
这里需要注意排版问题
YAML is indentation dependent. This
services: zoo1:
is a mapping with two keys that both map to null
(i.e. None
in Python).
Whereas:
services: zoo1:
is a mapping nested in a mapping. The key ‘services‘ has as value a mapping with key zoo1
(which again has a value null
).
相关推荐
白开水 2020-07-19
qdqht00 2020-05-09
xysoul 2020-11-03
ShangQuan0 2020-09-10
fearlessxjdx 2020-09-04
yss0 2020-08-19
young依然 2020-08-17
Crystalqy 2020-08-15
TaoTaoFu 2020-08-03
vtnews 2020-07-29
小信 2020-07-28
lihy0 2020-07-18
糊一笑 2020-07-04
wzg0wzg 2020-07-04
pigsmall 2020-07-04
VFCSDN 2020-07-04
qdqht00 2020-06-28
tosim 2020-06-24
tianlong 2020-06-21