Multisite configuration with Docker

I followed this tutorial to set up with success a multisite install with Docker. I recently ran into an error when trying to upgrade and I believe the line:

    - exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate

Should be edited to:

    - exec: cd /var/www/discourse && sudo -H -E -u discourse bundle exec rake multisite:migrate

Could anyone confirm/edit the tutorial?