Networking update on DOCKER 1.13.0-rc6 (beta)
As pointed out in me previous blog post, it was not possible to connect containers to a SWARM OVERLAY network used by the service.Docker v1.13 introduces the --attachable flag for network creation.
You can now create networks as follows:
docker network create --attachable --driver overlay net-1
Creating a service did not change, so:
docker service create --name nginx --network net-1 --replicas 3 -p 80:80 nginx
Instead of running your test containers as a service or using other fancy tricks, we now can simply test by:
docker run -it --rm --network net-1 xxradar/hackon ping nginx
Happy testing !
No comments:
Post a Comment