diff --git a/share/spack/templates/container/Dockerfile b/share/spack/templates/container/Dockerfile index be145aef3e1..bee6cd2373d 100644 --- a/share/spack/templates/container/Dockerfile +++ b/share/spack/templates/container/Dockerfile @@ -63,5 +63,6 @@ RUN {% if os_package_update %}{{ os_packages_final.update }} \ {% for label, value in labels.items() %} LABEL "{{ label }}"="{{ value }}" {% endfor %} -ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"] +ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l", "-c", "$*", "--" ] +CMD [ "/bin/bash" ] {% endif %}