title: jekyll site in docker serving locally
body: <p>I'm trying to work with a jekyll site locally using vim and github, all within a docker container on my Windows 10 machine. I want to work in the container like it is a linux virtual machine with my Downloads directory as a volume and jekyll served on port 55.</p>
  
  <p>My docker initialization is</p>
  
  <pre><code>docker container run -t -d -p 55:4000 -v ${PWD}:"/home/Downloads/" [container ID]
  </code></pre>
  
  <p>To start the jekyll site I run the following within the docker container</p>
  
  <pre><code>jekyll new my-awesome-site
  cd my-awesome-site
  bundle exec jekyll serve
  ...
  Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
  </code></pre>
  
  <p>There is nothing showing up locally at <code>127.0.0.1:55</code> 
  <a href="https://i.stack.imgur.com/acOLN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/acOLN.png" alt="Chrome Error"></a></p>
  
  <p><strong>What am I doing wrong?</strong></p>
  
  <p>Here is my Dockerfile</p>
  
  <pre><code>FROM: ubuntu:latest
  
  RUN apt-get update &amp;&amp; apt-get -y upgrade
  RUN apt-get install -y git &amp;&amp; apt-get install -y software-properties-common
  RUN apt-get install -y python-pip python-dev ruby-full build-essential
  RUN pip install --upgrade pip
  RUN apt-get install -y vim
  
  # build ruby configuration
  RUN mkdir gems \
      &amp;&amp; echo '# Install Ruby Gems to /gems' &gt;&gt; /gems/.bashrc \
      &amp;&amp; echo 'export GEM_HOME=/gems' &gt;&gt; /gems/.bashrc \
      &amp;&amp; echo 'export PATH=/gems/bin:$PATH' &gt;&gt; /gems/.bashrc \
      &amp;&amp; /bin/bash -c "source /gems/.bashrc"
  
  # install jekyll
  RUN gem install jekyll bundler
  
  EXPOSE 4000
  
  WORKDIR /home/work
  </code></pre>
  
  <p><code>docker ps</code></p>
  
  <pre><code>CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS                  NAMES
  e25f6359ce49        572                 "/bin/bash"         28 minutes ago      Up 28 minutes       0.0.0.0:55-&gt;4000/tcp   loving_gagarin
  </code></pre>