mirror of https://github.com/docker/docs.git
Fixed start/stop issues
Signed-off-by: FrenchBen <me@frenchben.com>
This commit is contained in:
parent
9d830fc5ac
commit
55ae9531ce
|
|
@ -262,7 +262,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
restart (name) {
|
restart (name) {
|
||||||
this.client.getContainer(name).stop(stopError => {
|
this.client.getContainer(name).stop({t: 10}, stopError => {
|
||||||
if (stopError && stopError.statusCode !== 304) {
|
if (stopError && stopError.statusCode !== 304) {
|
||||||
containerServerActions.error({name, stopError});
|
containerServerActions.error({name, stopError});
|
||||||
return;
|
return;
|
||||||
|
|
@ -278,7 +278,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
stop (name) {
|
stop (name) {
|
||||||
this.client.getContainer(name).stop(error => {
|
this.client.getContainer(name).stop({t: 10}, error => {
|
||||||
if (error && error.statusCode !== 304) {
|
if (error && error.statusCode !== 304) {
|
||||||
containerServerActions.error({name, error});
|
containerServerActions.error({name, error});
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue