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

Docker Machine pre_window command breaks pane commands #332

Closed
adambiggs opened this issue Aug 17, 2015 · 4 comments
Closed

Docker Machine pre_window command breaks pane commands #332

adambiggs opened this issue Aug 17, 2015 · 4 comments

Comments

@adambiggs
Copy link

Docker Machine requires an init command to be run in each shell session, which I've set as the Tmuxinator pre_window command:

pre_window: eval "$(docker-machine env test-vm)"

This worked great at first, but a few weeks ago I noticed that any following pane commands don't work. Strangely, they're printed in the console but not evaluated.

E.g.:

pre_window: eval "$(docker-machine env test-vm)"

windows:
  - "Test":
    panes:
      - ls

When I launch the above config, I get the following output:

$ eval "$(docker-machine env test-vm)"
ls
$
@neumachen
Copy link

Can you get a full trace?

@geowa4
Copy link

geowa4 commented Aug 26, 2015

I can also confirm this is happening. I just switched one of my projects from boot2docker to docker-machine. If I switch back to boot2docker, it works even though the command fails. echo $? returns 0 when using this eval statement so I don't believe that's the issue.

@geowa4
Copy link

geowa4 commented Aug 26, 2015

Changing to the following also fails the same way. It runs the eval statement, but no more.

windows:
    - work:
        root: /path/to/project
        panes:
            - main:
                - eval "$(docker-machine env dev)"
                - workon myenv

@adambiggs
Copy link
Author

I just found this issue over in the Docker Machine repo. @pstengel's workaround fixed the issue for me:

eval "$(docker-machine env default </dev/null)"

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