mirror of https://github.com/docker/docs.git
Fixed bug with API requests to 1.7 RC2 /containers/create endpoint
This commit is contained in:
parent
a311669588
commit
bf7d3af402
|
@ -103,6 +103,8 @@ export default {
|
|||
containerData.Env = containerData.Config.Env;
|
||||
}
|
||||
|
||||
containerData.Volumes = _.mapObject(containerData.Volumes, () => {return {};});
|
||||
|
||||
let existing = this.client.getContainer(name);
|
||||
existing.kill(() => {
|
||||
existing.remove(() => {
|
||||
|
@ -203,7 +205,6 @@ export default {
|
|||
containerServerActions.error({name, error});
|
||||
return;
|
||||
}
|
||||
existingData.name = existingData.Name || name;
|
||||
|
||||
if (existingData.Config && existingData.Config.Image) {
|
||||
existingData.Image = existingData.Config.Image;
|
||||
|
@ -371,6 +372,7 @@ export default {
|
|||
|
||||
// data is associated with one layer only (can be identified with id)
|
||||
stream.on('data', str => {
|
||||
console.log(str);
|
||||
var data = JSON.parse(str);
|
||||
|
||||
if (data.error) {
|
||||
|
|
Loading…
Reference in New Issue