Can';t推送到远程docker注册表

Can';t推送到远程docker注册表,docker,Docker,尝试将图像推送到远程docker注册表时,我收到以下消息: vagrant@vagrant-ubuntu-trusty-64:~/helloworld$ docker push 11.22.33.44:5000/ltrojanowski/helloworld The push refers to a repository [11.22.33.44:5000/ltrojanowski/helloworld] unable to ping registry endpoint https://11.2

尝试将图像推送到远程docker注册表时,我收到以下消息:

vagrant@vagrant-ubuntu-trusty-64:~/helloworld$ docker push 11.22.33.44:5000/ltrojanowski/helloworld
The push refers to a repository [11.22.33.44:5000/ltrojanowski/helloworld]
unable to ping registry endpoint https://11.22.33.44:5000/v0/
v2 ping attempt failed with error: Get https://11.22.33.44:5000/v2/: EOF
 v1 ping attempt failed with error: Get https://11.22.33.44:5000/v1/_ping: EOF
尽管将服务器上的etc/default/docker更改为:

# Docker Upstart and SysVinit configuration file

#
# THIS FILE DOES NOT APPLY TO SYSTEMD
#
#   Please see the documentation for "systemd drop-ins":
#   https://docs.docker.com/engine/articles/systemd/
#

# Customize location of Docker binary (especially for development testing).
#DOCKER="/usr/local/bin/docker"

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="--insecure-registry 11.22.33.44:5000"
# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
#export TMPDIR="/mnt/bigdrive/docker-tmp"
我只添加了
DOCKER_OPTS=“--unsecure registry 11.22.33.44:5000”
行,如中所述。
非常感谢您的帮助。

如评论所示,我误解了说明。需要在推送容器的机器中添加行
DOCKER\u OPTS=“--unsecure registry 11.22.33.44:5000”
,而不是在注册表机器上。

通过“在服务器上”您是指推送的机器上吗?还是注册机?我认为此设置属于您试图从中推送的计算机。@AssafLavie谢谢您的帮助,您的建议奏效了。在我的情况下,我无法写入
etc/default/docker
只读文件,我也无法更改其权限!我现在该怎么办@卢卡斯