Skip to content

Commit

Permalink
Main Network aliases bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph3nol committed Oct 12, 2017
1 parent 8568f66 commit 3f80c43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Domain/DockerContainer/Model/DockerContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ private function init(): void
*/
public function preExecute(): void
{
$service = $this->getService();
if (null !== $service->getHost() && 'localhost' !== $service->getHost()) {
$this->addNetwork(self::DOCKER_MAIN_NETWORK);
}
}

/**
Expand Down

0 comments on commit 3f80c43

Please sign in to comment.