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

Executing commands on a new container does not start the container with the options defined in the configuration #388

Closed
brunoprietog opened this issue Jul 15, 2023 · 0 comments · Fixed by #389

Comments

@brunoprietog
Copy link
Contributor

I have a configuration like this in my web role to access to the database server, which is not running on the same network as docker, but on the same host.

servers:
  web:
    hosts:
      - 1.1.1.1
    options:
      add-host: host.docker.internal:host-gateway

So, the host becomes host.docker.internal.

When trying to run commands with mrsk app exec, the new container that starts does not include these options, so the host is invalid and the application cannot connect to the database.

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

Successfully merging a pull request may close this issue.

1 participant