cage icon indicating copy to clipboard operation
cage copied to clipboard

Can't use ipv4_address in backend.yml

Open haanamomo opened this issue 5 years ago • 1 comments

I want to use ipv4-address field in docker-compose file, and this field is supported by docker-compose.yml version 2. However, when I run cage up, I got this error:

services.paas.networks.net: unknown field ipv4_address, expected aliases at line 28 column 9

Below is my backend.yml:

service
  node2: 
    image: "paas/node"
    build: .
    networks: 
      net:
        ipv4_address: 172.24.0.2
  
networks: 
  net:
    ipam:
      config:
        - subnet: 172.24.0.0/24

haanamomo avatar Mar 21 '19 01:03 haanamomo

Good catch! In general, these features would need to be added to the compose_yml crate. I don't have time to do that myself right now, but I'd be happy to show somebody else how.

emk avatar Apr 18 '19 23:04 emk