欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Docker : docker: Error response from daemon: user specified IP address is supported on user defined

程序员文章站 2022-06-03 11:20:04
...

1.美图

Docker : docker: Error response from daemon: user specified IP address is supported on user defined

2.背景

想运行docker容器的时候,指定ip,但是发现出问题

(base) lcc@lcc ~$ docker run -d --name es2  --ip 172.16.12.12 -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.2
dc6a3c4c300ecc6839b365f0e88a712c20c42aa0f2843b183ebafb71f9de50c8
docker: Error response from daemon: user specified IP address is supported on user defined networks only.

相关标签: 工具-docker