1、拉取镜像
docker pull minio/minio
2、运行容器
docker run -d -p 9000:9000 --name=minio --restart=always -e "MINIO_ROOT_USER=admin" -e "MINIO_ROOT_PASSWORD=JZTeya01" -v /home/data:/data -v /home/config:/root/.minio minio/minio server /data --console-address ":9000" --address ":9090"
注意:密码一定要是8位数以上,否则浏览器访问不了
可能存在的问题:
如果在之前有重启过防火墙,则会报错:
docker: Error response from daemon: driver failed programming external connectivity on endpoint mystifying_montalcini (4639c6e9ad3ae50feea7227783bf6b585ab4b250ad2dd93f48e29113f523e92d): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9000 -j DNAT --to-destination 172.17.0.3:9000 ! -i docker0: iptables: No chain/target/match by that name.
解决方法:重启docker
systemctl restart docker
3、浏览器访问成功