Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid CMD value for images with HEALTHCHECK #877

Closed
kumashiro opened this issue May 23, 2017 · 0 comments
Closed

Invalid CMD value for images with HEALTHCHECK #877

kumashiro opened this issue May 23, 2017 · 0 comments
Labels
Milestone

Comments

@kumashiro
Copy link


BUG REPORT INFORMATION

Description

When image is built with HEALTHCHECK, Portainer displays its value in CMD field on the image details page. For example, an image with these settings:

$ docker image inspect -f '{{.Config.Cmd}}' c8d8d792a49c
[/home/pushd/server/node_modules/coffee-script/bin/coffee pushd.coffee]

$ docker image inspect -f '{{.Config.Healthcheck}}' c8d8d792a49c
{[CMD-SHELL /usr/bin/curl --fail-early -f --http1.1 -o /dev/null http://127.0.0.1:8082/status || exit 1] 1m0s 30s 3}

has CMD value displayed as:

portainer-image

Steps to reproduce the issue:

  1. Grab a beer
  2. Create a Dockerfile with HEALTHCHECK
  3. Build it
  4. Check CMD value on the image details page :)

Technical details:

  • Portainer version: 1.12.4
  • Target Docker version (the host/cluster you manage): 17.03.1-ce
  • Platform (windows/linux): Linux
  • Command used to start Portainer (docker run -p 9000:9000 portainer/portainer): doesn't matter
  • Target Swarm version (if applicable): N/A
  • Browser: doesn't matter
@kumashiro kumashiro changed the title Invalid CMD value for containers with HEALTHCHECK Invalid CMD value for images with HEALTHCHECK May 23, 2017
@deviantony deviantony added this to the 1.13.0 milestone May 23, 2017
@deviantony deviantony added this to Release 1.13.0 in Roadmap May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants