I’ve recently been trying to migrate my Docker instance of Duplicati to the latest canaries based on .NET8, and one hiccup I’ve found is the healthcheck that I’ve added not working. The snippet I’ve used in the past is below, but basically it just makes sure that attempting to open the web UI works.
The problem that I’m facing is that the ‘curl’ utility doesn’t seem to be included in the new Docker containers. I don’t see anything else installed that looks like it would similarly be able to make a quick HTTP query and report success or failure, but admittedly not too familiar with unusual capabilities of various Linux utils.
A simple fix would be to just have the Docker container include curl, but since this is all it would be used for I can understand if there is some reluctance to doing so. In any case, the ideal would be for the official Docker definition to have whatever health check is reasonable built-in (by defining something like the below automatically).
Does anyone know of any workarounds in the meantime?
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8200"]
interval: 1m30s
timeout: 30s
retries: 3
start_period: 1m