docker(MinIo和zookeeper)

docker(MinIo和zookeeper)

MinIo

# 拉镜像
docker pull minio/minio
# 启动镜像
docker run -p 9000:9000 --name cxyMinio -v /usr/local/docker/minio/localtime:/etc/localtime -v /usr/local/docker/minio/data:/data -v /usr/local/docker/minio/config:/root/.minio -d minio/minio server /data

默认密码都是 minioadmin

创建一个存储桶

image-20200815143347827

设置权限

要不然访问不到图片
image-20200815143431731

zookeeper

# 拉取镜像
docker pull zookeeper
# 启动镜像
docker run -d -p 2181:2181 --name cxyZookeeper --restart always 镜像id
# 启动
docker exec -it 容器id ./bin/zkCli.sh
image-20200816152922826