mirror of
https://github.com/bitnami/containers.git
synced 2026-02-20 06:37:24 +08:00
use docker restart to restart a container
This commit is contained in:
@@ -74,8 +74,7 @@ container_stop() {
|
||||
# $1: name of the container
|
||||
container_restart() {
|
||||
if docker ps | grep -q $CONTAINER_NAME-$1; then
|
||||
docker stop $CONTAINER_NAME-$1
|
||||
docker start $CONTAINER_NAME-$1
|
||||
docker restart $CONTAINER_NAME-$1
|
||||
sleep $SLEEP_TIME
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user