0
我在https://hub.docker.com和docker登录工作正常时创建了私人存储库。我正在尝试通过saltstack并使用这个link登录。Saltstack docker.login返回API错误:500服务器错误?
salt '*' docker.login <url> <username> <password> <email>
salt '*' docker.login 'https://registry.hub.docker.com/v1/' 'username' 'password' '[email protected]'
我得到这个错误
The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/salt/minion.py", line 797, in _thread_return
return_data = func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/salt/modules/dockerio.py", line 1167, in login
return client.login(url, username, password, email)
File "/usr/lib/python2.7/site-packages/docker/client.py", line 615, in login
return self._result(response, json=True)
File "/usr/lib/python2.7/site-packages/docker/client.py", line 86, in _result
self._raise_for_status(response)
File "/usr/lib/python2.7/site-packages/docker/client.py", line 82, in _raise_for_status
raise errors.APIError(e, response, explanation=explanation)
APIError: 500 Server Error: Internal Server Error ("</html>")
我觉得库URL是错误的。 URL必须以/ v1 /结尾,根据issue 什么是我的存储库的“要认证的注册表url”?
你尝试'的https:// index.docker.io/V1 /'的网址是什么? – 2014-09-10 20:37:30