title: Could not resolve host: selenium
body: <p>I would like test my laravel projet with <strong>Dusk</strong>.</p>
  <p>But when I run <code>php artisan dusk</code> I have this:</p>
  <pre><code>Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {&quot;capabilities&quot;:{&quot;firstMatch&quot;:[{&quot;browserName&quot;:&quot;chrome&quot;,&quot;goog:chromeOptions&quot;:{&quot;binary&quot;:&quot;&quot;,&quot;args&quot;:[&quot;--disable-gpu&quot;,&quot;--headle
  ss&quot;,&quot;--window-size=1920,1080&quot;]},&quot;acceptInsecureCerts&quot;:true}]},&quot;desiredCapabilities&quot;:{&quot;browserName&quot;:&quot;chrome&quot;,&quot;platform&quot;:&quot;ANY&quot;,&quot;chromeOptions&quot;:{&quot;binary&quot;:&quot;&quot;,&quot;args&quot;:[&quot;--disable-gpu&quot;,&quot;--headless&quot;,&quot;--window-size=1920,1080&quot;]},&quot;acceptInsecu
  reCerts&quot;:true}}
  
  Could not resolve host: selenium
  
  </code></pre>
  <p>I've configured dusk to use my selenium container.</p>
  <p><strong>My config</strong>:</p>
  <pre><code>&lt;?php
  
  namespace Tests;
  
  use Facebook\WebDriver\Chrome\ChromeOptions;
  use Facebook\WebDriver\Remote\DesiredCapabilities;
  use Facebook\WebDriver\Remote\RemoteWebDriver;
  use Laravel\Dusk\TestCase as BaseTestCase;
  
  abstract class DuskTestCase extends BaseTestCase
  {
      use CreatesApplication;
  
      /**
       * Prepare for Dusk test execution.
       *
       * @beforeClass
       * @return void
       */
      public static function prepare()
      {
  //        static::startChromeDriver();
      }
  
      /**
       * Create the RemoteWebDriver instance.
       *
       * @return \Facebook\WebDriver\Remote\RemoteWebDriver
       */
      protected function driver()
      {
          $options = (new ChromeOptions)-&gt;addArguments([
               '--disable-gpu',
               '--headless',
               '--window-size=1920,1080',
           ]);
  
          return RemoteWebDriver::create(
              'http://selenium:4444/wd/hub', DesiredCapabilities::chrome()-&gt;setCapability(
                  ChromeOptions::CAPABILITY, $options
                  )
              -&gt;setCapability('acceptInsecureCerts', true), 60*1000, 60*1000
          );
      }
  }
  </code></pre>
  <p>Selenium is in a docker container. <strong>Selenium's configuration</strong> :</p>
  <pre><code>selenium:
      image: selenium/standalone-chrome:3.11.0-antimony
      networks:
           - project
  </code></pre>
  <p>I know it's because my project do not arrive to connect to my container but I don't know how I can resolve this problem.</p>
  <p>If someone can help me it will be nice ...
  Thanks a lot !</p>