mirror of https://github.com/docker/docs.git
Merge pull request #1301 from docker/fix-bash-entrypoint
Fix bug where container would be run with bash even thought it has a valid entrypoint
This commit is contained in:
commit
0cc18ddf9b
|
|
@ -126,7 +126,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
containerData.Cmd = image.Config.Cmd || 'bash';
|
containerData.Cmd = image.Config.Cmd || image.Config.Entrypoint || 'bash';
|
||||||
let existing = this.client.getContainer(name);
|
let existing = this.client.getContainer(name);
|
||||||
existing.kill(() => {
|
existing.kill(() => {
|
||||||
existing.remove(() => {
|
existing.remove(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue