我需要用docker做下一个:
像docker-compose.yaml一样
version: '2'
services:
builder:
image: "whatever-docker-image"
command: "docker build -t builder ."
local:
image: "builder:latest" <----Image generated in prevoious command
depends_on: [builder]
我该怎么做?
答案 0 :(得分:0)
您应该使用build
combainde与image
命令代替command
see this
version: '2'
services:
builder:
build: .
image: builder
local:
image: "builder:latest" <----Image generated in prevoious command