image
指定容器启动时的镜像。既可以是repository/tag也可以是一个镜像ID。
image: redisimage: ubuntu:18.04image: tutum/influxdbimage: example-registry.com:4000/postgresqlimage: a4bc65fd如果镜像不存在,Compose会尝试拉取镜像,除非还指定了build,在这种情况下,会使用指定的选项和指定的tags来构建一个镜像。
Last updated
Was this helpful?