title: Ruby & Redis / Skidekiq URI::InvalidURIError: the scheme redis does not accept registry part: bsc_redis:6379 (or bad hostname?)
body: <p>on my docker server I've got error on sidekiq/redis URL URL sepcification:</p>
  
  <pre><code>Sidekiq.configure_client do |config| config.redis =  { url: "redis://bsc_redis:6379", size: 1 } end
  </code></pre>
  
  <p>I get</p>
  
  <blockquote>
    <p>URI::InvalidURIError: the scheme redis does not accept registry part:
    bsc_redis:6379 (or bad hostname?)     from
    /usr/local/lib/ruby/2.0.0/uri/generic.rb:214:in <code>initialize'  from
    /usr/local/lib/ruby/2.0.0/uri/common.rb:218:in</code>new'  from
    /usr/local/lib/ruby/2.0.0/uri/common.rb:218:in <code>parse'    from
    /usr/local/lib/ruby/2.0.0/uri/common.rb:747:in</code>parse'    from
    /usr/local/bundle/gems/sidekiq-4.2.9/lib/sidekiq/redis_connection.rb:86:in
    <code>log_info'    from
    /usr/local/bundle/gems/sidekiq-4.2.9/lib/sidekiq/redis_connection.rb:20:in
    </code>create'  from
    /usr/local/bundle/gems/sidekiq-4.2.9/lib/sidekiq.rb:131:in <code>redis='
      from (irb):4:in</code>block in irb_binding'  from
    /usr/local/bundle/gems/sidekiq-4.2.9/lib/sidekiq.rb:83:in
    <code>configure_client'    from (irb):4    from
    /usr/local/bundle/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in
    </code>start'   from
    /usr/local/bundle/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in
    <code>start'   from
    /usr/local/bundle/gems/railties-3.2.13/lib/rails/commands.rb:41:in
    </code>'    from script/rails:6:in <code>require'    from
    script/rails:6:in</code>'</p>
  </blockquote>
  
  <p>But it works, when I specifiy the IP address, of the <em>bsc_redis</em> container:</p>
  
  <pre><code>Sidekiq.configure_client do |config| config.redis =  { url: "redis://172.18.0.5:6379", size: 1 } end
  =&gt; {:url=&gt;"redis://172.18.0.5:6379", :size=&gt;1}
  </code></pre>
  
  <p>When I <code>ping bsc_redis</code> from the rails container, it responses from 172.18.0.5. I cannot find any problem, why this occures.</p>
  
  <p>Any idea?</p>
  
  <p>Thank you</p>