control: change container name prefix to ptdl- as underscores are not valid as hostnames

This commit is contained in:
Jakob Schrettenbrunner 2017-09-04 00:20:45 +02:00
parent 23200339ce
commit 5ed3bb2a0c

View File

@ -91,7 +91,7 @@ func (env *dockerEnvironment) Create() error {
MemorySwap: env.server.Settings.Swap, MemorySwap: env.server.Settings.Swap,
} }
createContainerOpts := docker.CreateContainerOptions{ createContainerOpts := docker.CreateContainerOptions{
Name: "ptdl_" + env.server.UUIDShort(), Name: "ptdl-" + env.server.UUIDShort(),
Config: containerConfig, Config: containerConfig,
HostConfig: containerHostConfig, HostConfig: containerHostConfig,
Context: env.context, Context: env.context,