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

ports error on converting #633

Closed
changux opened this issue Jun 7, 2017 · 3 comments
Closed

ports error on converting #633

changux opened this issue Jun 7, 2017 · 3 comments

Comments

@changux
Copy link

changux commented Jun 7, 2017

Hi.

I am trying to convert this docker-compose file:

https://raw.githubusercontent.com/wazuh/wazuh-docker/master/docker-compose.yml

With this output:

ERRO Could not parse config for project kompose : Service 'wazuh' configuration key 0 value Does not match format 'ports'
Service 'wazuh' configuration key 2 value Does not match format 'ports'
FATA composeObject.Parse() failed, Failed to load compose file: Service 'wazuh' configuration key 0 value Does not match format 'ports'
Service 'wazuh' configuration key 2 value Does not match format 'ports'

Docker-compose file is valid, what is wrong?

Thanks!

@cdrage
Copy link
Member

cdrage commented Jun 8, 2017

@changux

Try:

      - "514:514/udp"

instead of

      - "514/udp:514/udp"

and see what happens.

@kadel
Copy link
Member

kadel commented Jun 12, 2017

hmm, interesting. It looks like "514/udp:514/udp" is supported by docker-compose tool, but not by libcompose.

It's strange as I don't see why it would ever make sense to set different protocol for container and host port.

@changux
Copy link
Author

changux commented Jun 12, 2017

Thanks. After follow your suggestions, convert process finished successfully.

Regards!

@changux changux closed this as completed Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants