Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error response from daemon: Server error from portlayer: Cannot reserve IP range Already in use #8647

Open
3 tasks done
Shogun8 opened this issue Sep 14, 2020 · 0 comments
Open
3 tasks done

Comments

@Shogun8
Copy link

Shogun8 commented Sep 14, 2020

Summary

If a container has been created with a static IP address, then removed, no new container attach to that static IP address, thereby rendering that IP address unusable. Also cannot remove a static IP address from a container network.

Environment information

This a 2-node vSAN.

vSphere and vCenter Server version

Server Version: v1.5.5-21324-50a44954
Storage Driver: vSphere Integrated Containers v1.5.5-21324-50a44954 Backend Engine
VMware Product: VMware vCenter Server
VMware OS version: 6.7.0

VIC version

vSphere Integrated Containers v1.5.5-21324-50a44954 Backend Engine: RUNNING

VCH configuration

vic-machine-windows.exe create
--target='root:[email protected]' --user=[email protected] --password='lwwerkwerwerw'
--no-tlsverify --thumbprint=dshfksdfhksdhkfhsdfhsdhfk --no-tls
--compute-resource=ClusterDev
--image-store=vsanDatastoreDev/vch1-images
--volume-store vsanDatastoreDev/vch1-volumes:default
--bridge-network vch1-bridge
--public-network vch1-public
--public-network-ip 192.168.254.1/24
--public-network-gateway 192.168.254.1
--dns-server 192.168.250.88
--container-network vic-containers:vch1-containers
--container-network-ip-range vic-containers:192.168250.0/24
--container-network-gateway vic-containers:192.168250.1/24
--container-network-dns vic-containers:192.168.250.88
--container-network-firewall vic-containers:published
--name vch1

Details

Steps to reproduce

docker create --name web --net vch1-containers --ip 192.168.250.10 nginx:latest
docker network connect db-net web
docker start web

docker create --name web nginx:latest
docker network connect vch1-containers --ip 192.168.250.10 web
docker network connect db-net web
docker start web

Actual behavior

Error response from daemon: Server error from portlayer: Cannot reserve IP range 192.168.250.10 - 192.168.250.10. Already in use
Error: failed to start containers: web

Expected behavior

I expect the container to start with the container ip address of 192.168.250.10

Logs

No logs

See also

Troubleshooting attempted

  • Searched GitHub for existing issues. (Mention any similar issues under "See also", above.)
  • Searched the documentation for relevant troubleshooting guidance.
  • Searched for a relevant VMware KB article.

I tried to first disconnect the IP address from the container network, but I receive an error.

docker network disconnect web vch1-containers
Error response from daemon: vSphere Integrated Containers does not yet implement DisconnectContainerFromNetwork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant