I have two containers: front and back. Front and Back communicate with bridged network, and front has additional macvlan network
docker-compose:
services:
front:
build: frontend
networks:
- extnetw
- default
back:
build: backend
networks:
extnetw:
external: true
And i have macvlan network:
sudo docker network create -d macvlan -o parent=enp7s0f0 --ip-range=10.10.101.240/28 --subnet=10.10.101.0.24 --gateway=10.10.101.1 extnetw
4496e0a44aa4cd6435e5bb0b0953f8d3d7b1ed1b7f5f1c8dd6aec1302410e08d
When i run
docker-compose up
i have
ERROR: for front Cannot start service front: driver failed revoking external connectivity on endpoint front_1 (17a9d3f94cfe9a9000e7bfd22d0c08f3d7d21fcce3641bf6961e36d4588bace7): network not found: 4496e0a44aa4cd6435e5bb0b0953f8d3d7b1ed1b7f5f1c8dd6aec1302410e08d
docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built:
OS/Arch: linux/amd64
os
Linux test 3.10.0-327.36.2.el7.x86_64 #1 SMP Mon Oct 10 23:08:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
What i’m doing wrong?