mirror of https://github.com/docker/docs.git
Make default command bash
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
parent
dbe1f46d4b
commit
92e821cf47
|
|
@ -101,20 +101,28 @@ export default {
|
||||||
containerData.Env = containerData.Config.Env;
|
containerData.Env = containerData.Config.Env;
|
||||||
}
|
}
|
||||||
|
|
||||||
containerData.Volumes = _.mapObject(containerData.Volumes, () => {return {};});
|
containerData.Volumes = _.mapObject(containerData.Volumes, () => {});
|
||||||
|
|
||||||
let existing = this.client.getContainer(name);
|
this.client.getImage(containerData.Image).inspect((error, image) => {
|
||||||
existing.kill(() => {
|
if (error) {
|
||||||
existing.remove(() => {
|
containerServerActions.error({name, error});
|
||||||
this.client.createContainer(containerData, (error) => {
|
return;
|
||||||
if (error) {
|
}
|
||||||
containerServerActions.error({name, error});
|
|
||||||
return;
|
containerData.Cmd = image.Config.Cmd || 'bash';
|
||||||
}
|
let existing = this.client.getContainer(name);
|
||||||
metrics.track('Container Finished Creating');
|
existing.kill(() => {
|
||||||
this.startContainer(name, containerData);
|
existing.remove(() => {
|
||||||
delete this.placeholders[name];
|
this.client.createContainer(containerData, (error) => {
|
||||||
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
if (error) {
|
||||||
|
containerServerActions.error({name, error});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
metrics.track('Container Finished Creating');
|
||||||
|
this.startContainer(name, containerData);
|
||||||
|
delete this.placeholders[name];
|
||||||
|
localStorage.setItem('placeholders', JSON.stringify(this.placeholders));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue