[root@iZuf6imeqt5e7fo9jw7918Z zookeeper]# docker run --name zookeeper-admin -p 80:2182 docker.io/ahoowang/zookeeper.admin [root@iZuf6imeqt5e7fo9jw7918Z zookeeper]# docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 56bf5522f4fe 4232addbc345 "dotnet ZooKeeper...." About an hour ago Up 2 minutes 0.0.0.0:2182->80/tcp zookeeper-admin
界面看上去还不错。
然而好景不长,跑了一阵发现无法访问了。
1 2
[root@iZuf6imeqt5e7fo9jw7918Z zookeeper]# docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[root@iZuf6imeqt5e7fo9jw7918Z zookeeper]# docker logs 56bf5522f4fe Hosting environment: Production Content root path: /app Now listening on: http://+:80 Application started. Press Ctrl+C to shut down. Application is shutting down... Hosting environment: Production Content root path: /app Now listening on: http://+:80 Application started. Press Ctrl+C to shut down. Unhandled Exception: System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext() at ZooKeeper.Admin.ZooKeeperManager.<dispose>d__9.MoveNext() in E:\ZooKeeper-Admin\ZooKeeper.Admin\ZooKeeperManager.cs:line 55 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch()