rancher / os

Tiny Linux distro that runs the entire OS as Docker containers
https://rancher.com/docs/os/v1.x/en/
Apache License 2.0
6.44k stars 656 forks source link

Docker 1.9+ networking model support #668

Open quantverse opened 8 years ago

quantverse commented 8 years ago

Hello,

I would like to ask if there is already any support for the new docker networking model released with version 1.9 (in case containers are launched as services when declared in cloud config)?

Docker-compose supports this with the --x-networking flag.

I see that I am already able to assign network to the container (net: xxx), but I am not able to create a custom network (in cloud config). With docker I would just use docker network create xxx. This should be supported in cloud config, like this (for example):

docker-networks:
  - xxx
  - yyy
joshwget commented 8 years ago

This should be supported once libcompose supports Docker Compose v2 format docker/libcompose#147

KenjiTakahashi commented 7 years ago

Is there something going on regarding this? The docker networking has been here for a while now and seems supported by libcompose as well. Yet networks keys (as in docker-compose V2/V3 format) specified in RancherOS cloud-config seem to do nothing. I have to create networks and connect containers to them by hand/separate scripts, which is PITA.

SvenDowideit commented 7 years ago

I'm going to add this as a "MAYBE" for v1.2 - I don't currently have time, but we need to have a reminder.