I want to implement start a container with a fixed IP, the docker-compose.yml is as below
version: "2"
services:
nacos1:
image: nacos:latest
networks:
nacos_net:
ipv4_address: 10.0.2.10
ports:
- 8848:8848
networks:
nacos_net:
ipam:
driver: bridge
config:
- subnet: "10.0.2.0/24"
I ran the following command:
[root@mine]# docker network ls
NETWORK ID NAME DRIVER SCOPE
a1e5dacf45a4 bridge bridge local
abb025d31d03 docker_gwbridge bridge local
8ee9e7766904 host host local
na5im6x390a1 ingress overlay swarm
0f87a6c4d98f mysql_default bridge local
f6105078617c none null local
mrh9vdl0xrqm pica_net overlay swarm
[root@mine]# docker-compose up
WARNING: The Docker Engine you're using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use `docker stack deploy`.
Creating network "temp_nacos_net" with the default driver
ERROR: plugin "bridge" not found
what is wrong with this error?