docker容器

vc6uscn9  于 2021-06-26  发布在  Mesos
关注(0)|答案(1)|浏览(410)

我正在尝试使用docker容器运行mesos。
我把 Docker 的照片从
https://github.com/mesosphere/docker-containers/tree/master/mesos
我试着用下面的命令运行docker,
docker run中层/中层-master:1.0.3-rc2 --quorum=1 --zk=zk://127.0.0.1:2181/mesos——工作目录=/tmp/
docker日志,

I0208 08:34:15.901656     6 main.cpp:237] Build: 2016-04-14 15:43:08 by root
I0208 08:34:15.904043     6 main.cpp:239] Version: 0.28.1
I0208 08:34:15.904062     6 main.cpp:242] Git tag: 0.28.1
I0208 08:34:15.904067     6 main.cpp:246] Git SHA: 555db235a34afbb9fb49940376cc33a66f1f85f0
I0208 08:34:15.904125     6 main.cpp:260] Using 'HierarchicalDRF' allocator
I0208 08:34:15.966691     6 leveldb.cpp:174] Opened db in 62.418286ms
I0208 08:34:15.971434     6 leveldb.cpp:181] Compacted db in 4.673451ms
I0208 08:34:15.971494     6 leveldb.cpp:196] Created db iterator in 11586ns
I0208 08:34:15.971525     6 leveldb.cpp:202] Seeked to beginning of db in 6392ns
I0208 08:34:15.971557     6 leveldb.cpp:271] Iterated through 0 keys in the db in 22873ns
I0208 08:34:15.971614     6 replica.cpp:779] Replica recovered with log positions 0 -> 0 with 1 holes and 0 unlearned
I0208 08:34:15.972483     6 main.cpp:471] Starting Mesos master
I0208 08:34:15.972503     8 recover.cpp:447] Starting replica recovery
I0208 08:34:15.972690    10 recover.cpp:473] Replica is in EMPTY status
I0208 08:34:15.973593    10 replica.cpp:673] Replica in EMPTY status received a broadcasted recover request from (4)@172.17.0.3:5050
I0208 08:34:15.973703    10 recover.cpp:193] Received a recover response from a replica in EMPTY status
I0208 08:34:15.973799    10 recover.cpp:564] Updating replica status to STARTING
I0208 08:34:15.974968     6 master.cpp:375] Master 0f1b52f6-cda9-4017-880f-ab3358875dbb (ea467d55e3fb) started on 172.17.0.3:5050
I0208 08:34:15.975086     6 master.cpp:377] Flags at startup: --allocation_interval="1secs" --allocator="HierarchicalDRF" --authenticate="false" --authenticate_http="false" --authenticate_slaves="false" --authenticators="crammd5" --authorizers="local" --framework_sorter="drf" --help="false" --hostname_lookup="true" --http_authenticators="basic" --initialize_driver_logging="true" --log_auto_initialize="true" --logbufsecs="0" --logging_level="INFO" --max_completed_frameworks="50" --max_completed_tasks_per_framework="1000" --max_slave_ping_timeouts="5" --port="5050" --quiet="false" --recovery_slave_removal_limit="100%" --registry="replicated_log" --registry_fetch_timeout="1mins" --registry_store_timeout="20secs" --registry_strict="false" --root_submissions="true" --slave_ping_timeout="15secs" --slave_reregister_timeout="10mins" --user_sorter="drf" --version="false" --webui_dir="/usr/share/mesos/webui" --work_dir="/tmp/mesos" --zk_session_timeout="10secs"
I0208 08:34:15.975765     6 master.cpp:424] Master allowing unauthenticated frameworks to register
I0208 08:34:15.976063     6 master.cpp:429] Master allowing unauthenticated slaves to register
I0208 08:34:15.976227     6 master.cpp:467] Using default 'crammd5' authenticator
I0208 08:34:15.976296    10 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 2.432612ms
I0208 08:34:15.976330    10 replica.cpp:320] Persisted replica status to STARTING
I0208 08:34:15.976387    10 recover.cpp:473] Replica is in STARTING status
W0208 08:34:15.976258     6 authenticator.cpp:511] No credentials provided, authentication requests will be refused
I0208 08:34:15.976528     6 authenticator.cpp:518] Initializing server SASL
I0208 08:34:15.976541    10 replica.cpp:673] Replica in STARTING status received a broadcasted recover request from (5)@172.17.0.3:5050
I0208 08:34:15.976599    10 recover.cpp:193] Received a recover response from a replica in STARTING status
I0208 08:34:15.976668    10 recover.cpp:564] Updating replica status to VOTING
I0208 08:34:15.977293    10 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 581510ns
I0208 08:34:15.977344    10 replica.cpp:320] Persisted replica status to VOTING
I0208 08:34:15.977378    10 recover.cpp:578] Successfully joined the Paxos group
I0208 08:34:15.977409    10 recover.cpp:462] Recover process terminated
I0208 08:34:15.982031     9 master.cpp:1711] The newly elected leader is master@172.17.0.3:5050 with id 0f1b52f6-cda9-4017-880f-ab3358875dbb
I0208 08:34:15.982081     9 master.cpp:1724] Elected as the leading master!
I0208 08:34:15.982089     9 master.cpp:1469] Recovering from registrar
I0208 08:34:15.982128     9 registrar.cpp:307] Recovering registrar
I0208 08:34:15.982303     9 log.cpp:659] Attempting to start the writer
I0208 08:34:15.982481     9 replica.cpp:493] Replica received implicit promise request from (6)@172.17.0.3:5050 with proposal 1
I0208 08:34:15.983101     9 leveldb.cpp:304] Persisting metadata (8 bytes) to leveldb took 515088ns
I0208 08:34:15.983155     9 replica.cpp:342] Persisted promised to 1
I0208 08:34:15.983306     9 coordinator.cpp:238] Coordinator attempting to fill missing positions
I0208 08:34:15.983456     9 replica.cpp:388] Replica received explicit promise request from (7)@172.17.0.3:5050 for position 0 with proposal 2
I0208 08:34:15.985903     9 leveldb.cpp:341] Persisting action (8 bytes) to leveldb took 2.407242ms
I0208 08:34:15.985947     9 replica.cpp:712] Persisted action at 0
I0208 08:34:15.986131     9 replica.cpp:537] Replica received write request for position 0 from (8)@172.17.0.3:5050
I0208 08:34:15.986181     9 leveldb.cpp:436] Reading position from leveldb took 18078ns
I0208 08:34:15.986785     9 leveldb.cpp:341] Persisting action (14 bytes) to leveldb took 568426ns
I0208 08:34:15.986866     9 replica.cpp:712] Persisted action at 0
I0208 08:34:15.986990     9 replica.cpp:691] Replica received learned notice for position 0 from @0.0.0.0:0

但是,我仍然无法使用连接到mesos guihttp://localhost:5050.
我有什么遗漏吗。
谢谢

xriantvc

xriantvc1#

试着去做

curl 172.17.0.3:5050

从命令行,您应该从mesos gui得到响应。
你可以在这里获得更多关于docker网络的信息
https://docs.docker.com/engine/userguide/networking/default_network/binding/http://www.dasblinkenlichten.com/docker-networking-101-host-mode/
此外,防火墙可能会阻止您的连接。

相关问题