Project

General

Profile

Actions

Bug #9752

closed

When creating a container, errors from docker are not properly reported to the user

Added by David Davis about 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
CLI
Target version:
Fixed in Releases:
Found in Releases:

Description

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".

❯     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

We need to show a user friendly error.

Actions

Also available in: Atom PDF