Azure-iot-sdk-c: failed to add interface vethcccc916 to sandbox: error setting interface "vethcccc916"

Created on 11 Oct 2019  路  3Comments  路  Source: Azure/azure-iot-sdk-c

Docker version:

`Client: Docker Engine - Community

Version: 19.03.3
API version: 1.40
Go version: go1.12.10
Git commit: a872fc2f86
Built: Tue Oct 8 00:59:59 2019
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.3
API version: 1.40 (minimum version 1.12)
Go version: go1.12.10
Git commit: a872fc2f86
Built: Tue Oct 8 00:58:31 2019
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.6
GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
runc:
Version: 1.0.0-rc8
GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
docker-init:
Version: 0.18.0
GitCommit: fec3683
`
iotedge version:

iotedge 1.0.8 (208b2204fd30e856d00b280112422130c104b9f0)

deployment.template.json:

"dotnetapp": { "version": "1.0", "type": "docker", "status": "running", "restartPolicy": "always", "settings": { "image": "${MODULES.dotnetapp}", "createOptions": { "HostConfig": { "NetworkMode": "host" } } } }

when i set my docker image to run as HOST, i got the following error:

caused by: failed to add interface veth8f6d002 to sandbox: error setting interface "veth8f6d002" IP to xxx.xxx.xxx.xxx/16: cannot program address xxx.xxx.xxx.xxx/16 in sandbox interface because it conflicts with existing route {Ifindex: 20 Dst: 172.18.0.0/16 Src: 172.18.0.1 Gw: Flags: [] Table: 254}

I should set as host, because this is the application azure-iot-sdk-c to connect ssh https://github.com/Azure/azure-iotedge

i tried to set bridge, but without success to connect SSH.

question

All 3 comments

Hi @kenyelima ,

this issue does not seem related to the azure-iot-SDK-c repo.
It seems to be a docker-related question.

I filed it under the IoT edge repo on your behalf, in case they have any hints to help you out:
https://github.com/Azure/azure-iotedge/issues/39

Thanks,
Azure IoT SDK Team

@kenyelima, @ewertons, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey

Thank you guys

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kiranpradeep picture kiranpradeep  路  7Comments

Anil-Poolayulla-Chelottillam picture Anil-Poolayulla-Chelottillam  路  7Comments

alexeystrakh picture alexeystrakh  路  7Comments

caobaokun picture caobaokun  路  7Comments

alexeystrakh picture alexeystrakh  路  5Comments