You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-02-28 21:35:35 : ERROR : base : Job "Interval container update for unix://var/run/docker.sock (trigger: interval[1:00:00], next run at: 2023-02-28 22:34:12 CST)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 268, in _raise_for_status
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http+docker://localhost/v1.41/containers/create?name=deluge
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "/usr/local/lib/python3.10/site-packages/pyouroboros/dockerclient.py", line 369, in update
new_container = self.recreate(container, latest_image)
File "/usr/local/lib/python3.10/site-packages/pyouroboros/dockerclient.py", line 139, in recreate
created = self.client.api.create_container(**new_config)
File "/usr/local/lib/python3.10/site-packages/docker/api/container.py", line 428, in create_container
return self.create_container_from_config(config, name)
File "/usr/local/lib/python3.10/site-packages/docker/api/container.py", line 439, in create_container_from_config
return self._result(res, True)
File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 274, in _result
self._raise_for_status(response)
File "/usr/local/lib/python3.10/site-packages/docker/api/client.py", line 270, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/local/lib/python3.10/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 400 Client Error for http+docker://localhost/v1.41/containers/create?name=deluge: Bad Request ("conflicting options: hostname and the network mode")
Technically we are just copy-pasting the config info that you would get from docker container inspect, but I guess it is returning an auto-generated hostname even though it is an invalid option for the container network mode. Will have to add in a validator to catch this network mode and remove the invalid options explicitly
I'm not setting the
hostname
Docker compose file:Seems to be related to similar Watchtower issue:
containrrr/watchtower#188
containrrr/watchtower@fde6e73
The text was updated successfully, but these errors were encountered: