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

Yaml file order is not maintained #5

Closed
mikefarah opened this issue Feb 21, 2017 · 2 comments
Closed

Yaml file order is not maintained #5

mikefarah opened this issue Feb 21, 2017 · 2 comments

Comments

@mikefarah
Copy link
Owner

When using the write command, the order of the fields in the Yaml file is not maintained.

version: '2'
services:
  test:
    image: ubuntu:14.04
    stdin_open: true
    tty: true

yaml w docker-compose.yml services.test.image nginx:master

services:
  test:
    image: nginx:master
    stdin_open: true
    tty: true
version: "2"
@mikefarah
Copy link
Owner Author

Note: Probably need to use MapSlice to maintain the order

@mikefarah
Copy link
Owner Author

Fixed in Release 1.6 @jmreicha

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

1 participant