Created attachment 1027854 [details]
Error message displayed in the ui
Description of problem:
The attached screenshot shows that when the command that you pass to a Docker container cannot be found, an error complaining about the HTTP error code returned is displayed. This is not very useful because the real issue, the fact that the command passed cannot be found, is not being passed on to the user.
Version-Release number of selected component (if applicable):
* Satellite 6.1 GA SNAP 5
Steps to Reproduce:
1. Try to provision a new Docker container
2. Pass a made up command (i.e. zebra) to the container
The UI displays the error: "Error - Expected([200, 201, 202, 203, 204, 304]) <=> Actual(404 Not Found)"
The UI should inform the user that the command was not found (equivalent to what you'd get if you were to run docker start on the container itself; see below)
[root@ibm-x3250m4-03 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c70697875e53 registry.access.redhat.com:443/rhel7:latest "/usr/bin/top" 8 minutes ago docker-rhel7-1
d912c458943b centos:7 "/bin/bash" 29 minutes ago Up 15 minutes partha-test
7e5527c77e1a registry.access.redhat.com:443/rhel7.0:latest "/usr/bin/top" About an hour ago docker-rhel70-1
d9cb731b1d4f mongo:latest "/usr/bin/top" About an hour ago docker-mongo-1
4bf9e9e96ab9 registry.access.redhat.com:443/rhel7.1:latest "top" About an hour ago docker-rhel71-1
b1c243a74c82 ibm-x3250m4-03.lab.eng.rdu2.redhat.com:5000/default_organization-dockerproduct-centos:7 "top" About an hour ago Up 10 minutes docker-centos-1
[root@ibm-x3250m4-03 ~]# docker start c70697875e53Error response from daemon: Cannot start container c70697875e53:  System error: exec: "/usr/bin/top": stat /usr/bin/top: no such file or directory
FATA Error: failed to start one or more containers
Can you try this out again? When I try to reproduce this and create a container with a made up command, I see this error (using the hub in case that mattered):
Error: Error - Cannot start container 7eca005cbe885a04a728f1a6a88978db2d745fd97b876fe77c3095d01486060d:  System error: exec: "zebra": executable file not found in $PATH
I'm guessing that 404 came from the Docker API, and now it returns the full error so that's why it now displays the proper text
Reset docs contact <> daobrien
I created a container with non-existent command 'zebra' and upon running it I get popup with relevant error msg
(x) Error: Error - Cannot start container d9e2621f1b3dce1298ba4e878cbb6952c89179332d05d75137afc518522ee056:  System error: exec: "zebra": executable file not found in $PATH
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.