Skip to content

Validate the format of expose #2406

Closed

Description

The other day I expend some hours trying to investigate why my docker container was not exposing some ports. And understanding that was a docker problem, and not an app problem.

In dockerfile there is expose to say the ports, but ports in docker-compose. Ok, there is a change.

But why cannot say that "warning, expose syntax is not valid in docker-compose, you meant ports?" or something like this?

Activity

  1. dnephin commented on Nov 17, 2015

    @dnephin

    Do you have an example of the config that was invalid but didn't raise an error?

    Normally you should get a validation error when the config is incorrect.

  2. added this to the 1.5.2 milestone on Nov 17, 2015
  3. changed the title [-]improve usability: show warning when invalid information is introduced in .yml file[/-] [+]Validate the format of `expose`[/+] on Nov 17, 2015
  4. aanand commented on Nov 26, 2015

    @aanand

    Fix is in #2464.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions