一、下載鏡像
docker search hbase
選擇第一個鏡像,這個下載量最多,以此推斷最靠譜
docker pull harisekhon/hbase
docker images
發現已經在本地了,說明下載成功
二、啓動並驗證
1、啓動hbase
docker run -d -p 2181:2181 -p 8080:8080 -p 8085:8085 -p 9090:9090 -p 9095:9095 -p 16000:16000 -p 16010:16010 -p 16201:16201 -p 16301:16301 --name hbase harisekhon/hbase:latest
說明啓動成功
2、驗證hbase
進入hbase
docker exec -it f375886fae84 /bin/bash
進入hbase 命令
hbase shell
查看列表
list
結果爲空