[root@iZwz941khj7xsipxn313l2Z ~]# docker run -it -d -p 4001:8888 -p 4002:3306 -v /home/soft/haproxy:/usr/local/etc/haproxy --name h1 --privileged --net=net1 --ip 172.18.0.7 haproxy
5467b2dbb38bd2465215417a285de5609b2247c56091b13c7d99b033fff21a35
[root@iZwz941khj7xsipxn313l2Z ~]# docker exec -it h1 bash
Error response from daemon: Container 5467b2dbb38bd2465215417a285de5609b2247c56091b13c7d99b033fff21a35 is not running
[root@iZwz941khj7xsipxn313l2Z ~]#
报错了,进入的时候说没有启动