#!/bin/bashutil::is_docker() {if command -v docker 1>/dev/null 2>&1; thenRUNTIME="docker"return 0elsereturn 1fi}wget http://static.ccs.tencentyun.com/docker-19.03.9-install-1.2.tgztar -zxf docker-19.03.9-install-1.2.tgzif ! docker-19.03/bin/runc --version; thenecho "unmatch libseccomp version"# Get OS distributionOS_RELEASE="$(. /etc/os-release && echo "$ID")"OS_VERSION="$(. /etc/os-release && echo "$VERSION_ID")"if [ "ubuntu" = "${OS_RELEASE}" ]; thenapt-get install libseccomp2elseyum install -y libseccompfifiif ! docker-19.03/bin/runc --version; thenecho "bad libseccomp version"exit 1;fiif util::is_docker; thencp docker-19.03/bin/runc /usr/bin/docker-runccp docker-19.03/bin/runc /usr/bin/runcelsecp docker-19.03/bin/runc /usr/local/sbin/runcfirm -r docker-19.03rm docker-19.03.9-install-1.2.tgz
フィードバック