vantage6.common.docker.addons.get_server_config_name#
- get_server_config_name(container_name, scope)#
Get the configuration name of a server from its docker container name
Docker container name of the server is formatted as f”{APPNAME}-{self.name}-{self.scope}-server”. This will return {self.name}
- Parameters:
container_name (str) – Name of the docker container in which the server is running
scope (str) – Scope of the server (e.g. ‘system’ or ‘user’)
- Returns:
A server’s configuration name
- Return type:
str