explicitly stop/start docker to fix up local-up-cluster.sh

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2023-12-06 18:26:33 -05:00
parent 89dfbebe2e
commit 48671a3a20
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59

View File

@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -x
KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
# This script builds and runs a local kubernetes cluster. You may need to run
@ -1282,6 +1284,9 @@ if [[ "${KUBETEST_IN_DOCKER:-}" == "true" ]]; then
# let's log it where we can grab it later
echo "DOCKER_LOGFILE=${LOG_DIR}/docker.log" >> /etc/default/docker
echo "stopping docker"
service docker stop
# bump up things
refresh_docker_containerd_runc
@ -1290,8 +1295,8 @@ if [[ "${KUBETEST_IN_DOCKER:-}" == "true" ]]; then
containerd --version
runc --version
echo "restarting docker"
service docker restart
echo "starting docker"
service docker start
fi
# validate that etcd is: not running, in path, and has minimum required version.