Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Conversation

@ofir-petrushka
Copy link

@ofir-petrushka ofir-petrushka commented May 3, 2016

This adds support for docker auto-restart feature.

Do note that both this and the DNS PR need to rewrite some config from .start to .create_container host_config part.

environment=self.calculateEnvForComponent(),
host_config=client.create_host_config(restart_policy=self.config.getRestartPolicy(),
volumes_from=self.config.volumes_from,
binds={ b.external: { "bind": b.volume } for b in self.config.bindings },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is quite long; maybe breakout the dict construction into its own variable above?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants