mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
Merge pull request #6600 from nextcloud/enh/6589/add-hostname
CreateContainer: always add a Hostname to each container
This commit is contained in:
commit
6b82682384
1 changed files with 2 additions and 0 deletions
|
|
@ -584,6 +584,8 @@ readonly class DockerActionManager {
|
||||||
$requestBody['HostConfig']['Mounts'] = $mounts;
|
$requestBody['HostConfig']['Mounts'] = $mounts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$requestBody['Hostname'] = $container->GetIdentifier();
|
||||||
|
|
||||||
$url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier());
|
$url = $this->BuildApiUrl('containers/create?name=' . $container->GetIdentifier());
|
||||||
try {
|
try {
|
||||||
$this->guzzleClient->request(
|
$this->guzzleClient->request(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue