protected function stopTraefik()
    {
        if ($this->hasTraefik()) {
            $container = self::TRAEFIK_CONTAINER_NAME;

            // Shutdown and remove the traefik container.
            if ($this->isTraefikRunning()
                && $this->hasDockerContainer($container)) {
                $this->say(sprintf('Container "%s" has been stopped.', $container));
                $this->taskDockerStop($container)
                    ->printOutput(false)
                    ->run();

                $this->say(sprintf('Container "%s" has been removed.', $container));
                $this->taskDockerRemove($container)
                    ->printOutput(false)
                    ->run();
            }

            // Remove the traefik network proxy.
            $this->removeTraefikNetworkProxy();
        }

        return $this;
    }