1、
[root ~]# docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root ~]# service docker start
Redirecting to /bin/systemctl start docker.service
产生原因:
docker 没有启动
解决问题:
service docker start
2、
遇到的报错
[root@iZwz99flc8kksycg4w868sZ ~]# docker run \
> -p 9000:9000 \
> -p 9001:9001 \
> -e "MINIO_ROOT_USER=root" \
> -e "MINIO_ROOT_PASSWORD=123456" \
> minio/minio server /data --console-address ":50000"
Unable to find image 'minio/minio:latest' locally
latest: Pulling from minio/minio
c2c17d84f25a: Pull complete
46cdcde062b2: Pull complete
479f4d7c22a5: Pull complete
01329a091752: Pull complete
4458f5186cda: Pull complete
d272dac6fd38: Pull complete
c18ef8b8ddba: Pull complete
Digest: sha256:4013c0889751aa8d7d5c6f1c4e0020f866a13757a62702de6b60670c793e491a
Status: Downloaded newer image for minio/minio:latest
ERROR Unable to validate credentials inherited from the shell environment: Invalid credentials
> Please provide correct credentials
HINT:
Access key length should be at least 3, and secret key length at least 8 characters
[root@iZwz99flc8kksycg4w868sZ ~]#
产生原因:
MINIO_ROOT_PASSWORD=123456 密码设置不足8位
解决问题:密码设置8位