rename DOCKER_SOCKET_PATH to WATCHTOWER_DOCKER_SOCKET_PATH

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-04-16 17:47:15 +02:00
parent 2260ccc876
commit 37b5e12a6f
9 changed files with 14 additions and 14 deletions

View file

@ -332,7 +332,7 @@
],
"volumes": [
{
"source": "%DOCKER_SOCKET_PATH%",
"source": "%WATCHTOWER_DOCKER_SOCKET_PATH%",
"destination": "/var/run/docker.sock",
"writeable": false
}

View file

@ -117,7 +117,7 @@ class ContainerDefinitionFetcher
if ($value['source'] === '') {
continue;
}
} elseif ($value['source'] === '%DOCKER_SOCKET_PATH%') {
} elseif ($value['source'] === '%WATCHTOWER_DOCKER_SOCKET_PATH%') {
$value['source'] = $this->configurationManager->GetDockerSocketPath();
if($value['source'] === '') {
continue;

View file

@ -572,7 +572,7 @@ class ConfigurationManager
}
public function GetDockerSocketPath() : string {
$envVariableName = 'DOCKER_SOCKET_PATH';
$envVariableName = 'WATCHTOWER_DOCKER_SOCKET_PATH';
$configName = 'docker_socket_path';
$defaultValue = '/var/run/docker.sock';
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);