Docker: Issueshttps://projects.theforeman.org/https://projects.theforeman.org/favicon.ico?16970236342015-03-13T16:58:39ZForeman
Redmine Bug #9752 (Closed): When creating a container, errors from docker are not properly reported to th...https://projects.theforeman.org/issues/97522015-03-13T16:58:39ZDavid Davisdaviddavis@redhat.com
<p>When I create a container with a dupe name, Docker properly responds with a 409 to let me know that it conflicts with another container. However, we're only showing "500 server error".</p>
<pre>
❯ hammer -u admin -p changeme docker container create --name crafty_turing \
--repository-name centos --tag latest --compute-resource DockerCP --command bash
Docker container created
❯ hammer -u admin -p changeme docker container create --name crafty_turing \
--repository-name centos --tag latest --compute-resource DockerCP --command "ping google.com"
Could not create the container:
Error: 500 Internal Server Error
</pre>
<p>We need to show a user friendly error.</p>