Docker Community Forums

Share and learn in the Docker community.

Docker-compose bundle ... Unsupported key 'restart' in services.web - ignoring


(Chris Campbell) #1

Running docker-compose bundle on the docker-compose file below yields the following warning Unsupported key ‘restart’ in services.web - ignoring. Is the restart policy no longer needed because of “services”?

docker-compose.yml

version: '2'

services:
  web:
    image: nginx
    restart: always

app.dab

{
  "Services": {
    "web": {
      "Image": "nginx@sha256:0fe6413f3e30fcc5920bc8fa769280975b10b1c26721de956e1428b9e2f29d04", 
      "Networks": [
        "default"
      ]
    }
  }, 
  "Version": "0.1"
}