title: Dockerized certbot can not find mounted directory
body: <p>I'm trying to deploy my service on a vm and I have this part in my docker-compose.yaml:</p>
  <pre><code>certbot:
  container_name: certbot
  image: certbot/certbot:v1.9.0
  logging:
    driver: &quot;json-file&quot;
    options:
      max-size: 500m
  volumes:
    - {vm_path}/certbot/certbot-etc:/etc/letsencrypt
    - {vm_path}/certbot/certbot-var:/var/lib/letsencrypt
    - {vm_path}/nginx/certbot-web-root:/var/www/certbot/html
    - /etc/localtime:/etc/localtime:ro
    - /etc/timezone:/etc/timezone:ro
  command:
    - certonly
    - --webroot
    - -w /var/www/certbot/html
    - --email={email}
    - --agree-tos
    - --no-eff-email
    - --dry-run
    - -d {domain}
  </code></pre>
  <p>but when I run <code>docker-compose up</code>, I get this error from certbot:</p>
  <p><code>certbot        |  /var/www/certbot/html does not exist or is not a directory</code></p>
  <p>also the directory <code>{vm_path}/nginx/certbot-web-root:/var/www/certbot/html</code> exists on my vm and is absolute.</p>
  <p>------UPDATE:
  My VM's OS is Ubuntu 18.04.
  I checked <code>docker-compose config</code> and there is no problem in it.
  Also the result of <code>run ls -l /var/www/certbot</code>:</p>
  <pre><code> certbot        | total 4
   certbot        | drwxr-xr-x    2 1001     1001     4096 Nov  4 10:54 html
  </code></pre>
  <p>and also the <code>/var/www/certbot/html/</code> exists and is empty.</p>