Uploading of Docker image files

Source: Internet
Author: User
Tags docker hub

Make one to mirror and upload it to hub.docker.com. (1) Login to the following URL to register an account name

https://hub.docker.com/

(2) login on the Docker host
[[email protected] docker]# docker loginLogin 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: mike0405Password: WARNING! Your password will be stored unencrypted in /root/.docker/config.json.Configure a credential helper to remove this warning. Seehttps://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded
(3) The credentials of our login are then stored in the following location.
[[email protected] .docker]# pwd/root/.docker[[email protected] .docker]# cat config.json {    "auths": {        "https://index.docker.io/v1/": {            "auth": "bWlrZTA0MDU6emFuZzA0MDVaQU5H"        }    },    "HttpHeaders": {        "User-Agent": "Docker-Client/18.05.0-ce (linux)"    }
(4) Make image and upload
[[email protected] .docker]# docker tag flask mike0405/flask[[email protected] .docker]# docker push mike0405/flaskThe push refers to repository [docker.io/mike0405/flask]7ac180ee56ec: Pushed 7ac2d207ee3f: Pushed c0cb3173d025: Pushed d2e086cfb9ca: Pushed 7861eaf542d8: Pushed 6948ed269722: Pushed 4622c8e1bdc0: Pushed b33859b66bfd: Pushed 14fa4a9494bf: Pushed 0c3819952093: Pushed 05b0f7f2a817: Pushed latest: digest: sha256:bf314bbc4e3fa98f80cb964e750d58e1f47b361525fe780b1a3803eb5099e2ef size: 2619

(5) from the in, you can see that step 4 of the upload has been successful.

(6) Mirror search using the search option

Example: [[email protected]. docker]# Docker Search Postgresname DESCRIPTION STARS official Automatedpostgres The Pos   Tgresql object-relational Database sy ...                                                                     4979 [OK] Sameersbn/postgresql [Ok]paintedfox/postgresql A Docker image for running Pos          Tgresql. [Ok]orchardup/postgresql https://github.com/orchardup/docker-p   Ostgres ... [Ok]kiasaki/alpine-postgres PostgreSQL Docker image based on Alpi Ne Linux (ok]centos/postgresql-96-centos7 PostgreSQL is a advanced   Object-relational ... Bitnami/postgreSQL Bitnami PostgreSQL Docker Image [Ok]beg   Riffs/postgrest Moved to https://hub.docker.com/r/postgrest/... [Ok]centos/postgresql-94-centos7 PostgreSQL is a advanced Object-rela   tional ... Crunchydata/crunchy-postgres Crunchy PostgreSQL is an open source, UNM   Odi...        One wrouesnel/postgres_exporter postgres metrics exporter for Prometheus. 8 CLKAO/POSTGRES-PLV8 Docker image for running PLV8 1.4   On Postgre ... 7 [OK]

Uploading a Docker image file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.