上传到docker-hub,然后拉取镜像,部署
$ docker login
登陆到docker-hub站点,创建一个仓库minio。
把仓库设置为pubilc 访问,这样拉取时不需要输入账号密码验证。
然后登录hub.docker。
# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: kunbei
Password:
之后把打包的镜像push到仓库中。需要注意的是,需要将镜像打个tag,不然push会报错
denied: requested access to the resource is denied
打tag
# docker tag minio/myself:first kunbei/minio
然后push
# docker push kunbei/minio
The push refers to repository [docker.io/kunbei/minio]
495b3a5f2b82: Pushed
c8d4f92fb599: Pushed
1f5b3174406d: Pushed
a770fedb8aaf: Pushed
777b2c648970: Mounted from library/alpine
latest: digest: sha256:1b46b259288e4f3db744d367fe6d57a9fa5c0d7c733d485b8e84b1bd311d2103 size: 1367
测试镜像仓库拉取成功与否
docker run -d -p 9005:9000 \
--name myminio -e "MINIO_ROOT_USER=minioadmin" \
-e "MINIO_ROOT_PASSWORD=minioadmin" \
-v /home/myminiodata:/data \
kunbei/minio server /data
访问地址http://localhost:9005 打开minio管理后台。
好了,本文内容全部结束,感谢您的阅读。希望对您有所帮助。