1. 程式人生 > >docker下安裝zookeeper

docker下安裝zookeeper

[[email protected] zwj]# docker pull registry.docker-cn.com/library/zookeeper 

[[email protected] zwj]# docker images

REPOSITORY                                     TAG                 IMAGE ID            CREATED             SIZE
registry.docker-cn.com/library/zookeeper       latest              f336949ce7a1        6 days ago          148 MB

[
[email protected]
zwj]# docker run --name zk01 -p 2181:2181 --restart always -d f336949ce7a1 4beac9d863a9b910263cd01d9793a3555bf634b57b96d401e702c61bf314d478 [[email protected] zwj]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4beac9d863a9 f336949ce7a1 "/docker-entrypoin..." 6 seconds ago Up 5 seconds 2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp zk01