docker-compose creating multiple instances for the same image

后端 未结 3 2090
长情又很酷
长情又很酷 2020-12-13 01:26

I need to start multiple containers for the same image. If i create my compose file as shown below, it works fine.

version: \'2\'

services:
  app01:
    im         


        
3条回答
  •  一整个雨季
    2020-12-13 02:10

    The scale command is now deprecated, you should use up instead.

    docker-compose up --scale app=2
    

    more details in https://docs.docker.com/compose/reference/up

提交回复
热议问题