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.Env = containerData.Config.Env;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
containerData.Volumes = _.mapObject(containerData.Volumes, () => {return {};});
|
||||||
|
|
||||||
let existing = this.client.getContainer(name);
|
let existing = this.client.getContainer(name);
|
||||||
existing.kill(() => {
|
existing.kill(() => {
|
||||||
existing.remove(() => {
|
existing.remove(() => {
|
||||||
|
@ -203,7 +205,6 @@ export default {
|
||||||
containerServerActions.error({name, error});
|
containerServerActions.error({name, error});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
existingData.name = existingData.Name || name;
|
|
||||||
|
|
||||||
if (existingData.Config && existingData.Config.Image) {
|
if (existingData.Config && existingData.Config.Image) {
|
||||||
existingData.Image = 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)
|
// data is associated with one layer only (can be identified with id)
|
||||||
stream.on('data', str => {
|
stream.on('data', str => {
|
||||||
|
console.log(str);
|
||||||
var data = JSON.parse(str);
|
var data = JSON.parse(str);
|
||||||
|
|
||||||
if (data.error) {
|
if (data.error) {
|
||||||
|
|
Loading…
Reference in New Issue