System environment see End of article appendix

The problem is : newly build local registry after ,push new image To local registry  Fail to succeed , And report errors :

The push refers to repository [ip:/horizon2007/httpd] Get https://IP:5000/v2/: http: server gave HTTP response to HTTPS client 

Consult the documentation :https://docs.docker.com/registry/insecure/

resolvent :

stay /etc/hosts Add : (192.168.184.130 For this machine IP)

root@localhost:/etc/docker# echo "192.168.184.130 hub.docker.horizon.io" >> /etc/hosts

stay /etc/docker/daemon.json Add a :

{
"registry-mirrors": ["http://5a9b2e97.m.daocloud.io"],
"insecure-registries": ["hub.docker.horizon.io:5000"]
}

restart

service docker restart

Push it locally again registry:

root@localhost:/etc/docker# docker push hub.docker.horizon.io:5000/httpd:v2.2
The push refers to repository [hub.docker.horizon.io:5000/httpd]
ab5efd5aec77: Pushed
9058feb62b4a: Pushed
3f7f50ced288: Pushed
71436bd6f1c4: Pushed
4bcdffd70da2: Pushed
v2.2: digest: sha256:558680adf8285edcfe4813282986eb7143e3c372610c6ba488723786bd5b34c5 size: 1366

--------------------------------------------

appendix : System environment  

Client:
Version: 18.06.-ce
API version: 1.38
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul ::
OS/Arch: linux/amd64
Experimental: false Server:
Engine:
Version: 18.06.-ce
API version: 1.38 (minimum version 1.12)
Go version: go1.10.3
Git commit: 0ffa825
Built: Wed Jul ::
OS/Arch: linux/amd64
Experimental: false

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

root@localhost:/etc/docker# docker info
Containers:
Running:
Paused:
Stopped:
Images:
Server Version: 18.06.-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: d64c661f1d51c48782c9cec8fda7604785f93587
runc version: 69663f0bd4b60df09991c08812a60108003fa340
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.--generic
Operating System: Ubuntu 16.04 LTS
OSType: linux
Architecture: x86_64
CPUs:
Total Memory: .95GiB
Name: horizon-virtual-machine
ID: FRRK:DIDH:XQDM:VHNJ:XVLQ:ZPPM:CWQZ:KSR3:5KN4:LEYM:2HWG:R2KL
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: horizon2007
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/
Registry Mirrors:
http://5a9b2e97.m.daocloud.io/
Live Restore Enabled: false

[ primary ]Docker-issue(2) http: server gave HTTP response to HTTPS client More articles about

  1. docker registry push error “server gave HTTP response to HTTPS client”

    System environment :centos7 docker edition : 1.12.3( Note that version , There may be different versions with different settings ) docker registry edition :2.4.1 problem : Successful installation docker registry, ...

  2. docker 1.12.3 Build a private warehouse , Upload image error :server gave HTTP response to HTTPS client”

    System environment :centos7 docker edition : 1.12.3( Note that version , There may be different versions with different settings ) docker registry edition :2.4.1 problem : Successful installation docker registry, ...

  3. docker local registry server gave HTTP response to HTTPS client

    server gave HTTP response to HTTPS client The error is reported in insecure_registry Added http Prefix , If the local registry No https Of Don't add any ...

  4. http: server gave HTTP response to HTTPS client & Get https://192.168.2.119/v2/: dial tcp 192.168.2.119:443: getsockopt: connection refused

    http: server gave HTTP response to HTTPS client The reason for this problem is :Docker since 1.3.X after docker registry By default, interaction uses HTTP ...

  5. ( 7、 ... and )VMware Harbor problem :Get https://192.168.3.135:8088/v2/: http:server gave HTTP response to HTTPS client

    ( One ) Problem description Landing time , Report errors docker Get https://192.168.3.135:8088/v2/: http:server gave HTTP response to HTTPS cl ...

  6. 【 solve 】http: server gave HTTP response to HTTPS client

    [ problem ] Upload the image to the private warehouse $ docker push xxx.xxx.xxx.xxx:5000/java-8 The push refers to repository [xxx.xxx.xx ...

  7. docker server gave HTTP response to HTTPS client How to deal with the problem

    vi /etc/docker/daemon.json [root@localhost ~]# cat /etc/docker/daemon.json {"insecure-registrie ...

  8. docker Push the mirror image to docker The local warehouse reported an error :http: server gave HTTP response to HTTPS client

    because Docker from 1.3.X after , And docker registry By default, interaction uses https, However, the private warehouse built here only provides http service , So when interacting with the private warehouse, the above error will be reported . terms of settlement : vim / ...

  9. docker pull Report errors Get https://xxx.xxx.xxx.xxx:5000/v1/_ping: http: server gave HTTP response

    resolvent : vim /etc/docker/daemon.json { "insecure-registries":["xxx.xxx.xxx.xxx:5000" ...

Random recommendation

  1. 【 Open source 】.Net Api Open interface document website

    Open source address :http://git.oschina.net/chejiangyi/ApiView Open source QQ Group : .net Open source infrastructure services   238543768 ApiView .net api View the interface document of ...

  2. Three layers ViewPager nesting Event handling

    So much ViewPager Nested together, there's bound to be conflicts Try it ( Smiling face ) Here's how to solve it ..... I'm so embarrassed about this dish b 了 Set the external parent control not to block the events of my child control , By rewriting ViewPager Of @Overri ...

  3. Python in pass The function of sentences

    http://mianshi.fenzhi.com/post/1529.html pass The statement does nothing , Generally as placeholders or create placeholders ,pass Statement does nothing , such as :while False:p ...

  4. The fourth quarter, Two dimensional bar code and magnetic card 、IC card 、 The comparison of optical card

    The comparison between two-dimensional bar code and other automatic recognition technologies can be seen in the table below : Comparison point Two dimensional bar code Magnetic card IC card Optical card Anti magnetic strong weak secondary strong Antistatic strong secondary secondary strong Resistance to damage Strong folding, local perforation, local cutting Weak, not foldable, not perforated, not ...

  5. linux scp Copy files and folders remotely

    [http://www.jb51.net/LINUXjishu/73131.html] 1. Copy this machine /home/administrator/test The entire directory to the remote host 192.168.1.100 Of /ro ...

  6. html5 And css3 Interview questions (1)

    1.html What are the new features that remove what elements New characteristics : Semantic tags (header,nav,footer.section) Audio , video (audio,video) canvas canvas Remove elements : Performance elements :cen ...

  7. maya2013 uninstall / Installation failed / How to completely uninstall clean maya2013 Registry and file methods

    maya2013 Prompt that the installation is not complete , How to solve the problem that some products cannot be installed ? Some friends are win7 perhaps win10 Installation under system maya2013 Failure tips maya2013 Installation incomplete , Some products cannot be installed , Sometimes I want to re install maya ...

  8. 2016 year 3 month 11 Japan Android Internship diary

    1. Delete tomorrow orthodotics_design_animation_content_gif.gif file .( Completed ) 2.  How to detect memory leaks ? A: Through some performance monitoring analysis tools , Such as JProfile ...

  9. PHP mysql client encapsulation

    config1.inc.php $CONFIG_DATABASE_TXL = array( #array('127.0.0.1', 'root', '', 'he_txl','3306') array ...

  10. mysql The transaction isolation

    One . The nature of transactions Atomicity . Uniformity . Isolation, . persistence Two . The isolation level of the transaction 1. Uncommitted read (Read Uncommitpeatableted) The infamous dirty reading , Business A Read about business B Uncommitted data 2. Submit to read RC( ...