fix get container id bug (#8196)

This commit is contained in:
Yao Zongyou 2019-09-19 12:49:51 +08:00 committed by Nitish Tiwari
parent e34369c860
commit 0e1408844b

View File

@ -15,7 +15,7 @@
# limitations under the License. # limitations under the License.
# #
CONTAINER_ID=$(awk -F / '{ print substr($NF, 1, 12) }' /proc/1/cpuset) CONTAINER_ID=$(grep -o -e '[0-f]\{12,\}' /proc/1/cpuset | awk '{print substr($1, 1, 12)}')
MINT_DATA_DIR=${MINT_DATA_DIR:-/mint/data} MINT_DATA_DIR=${MINT_DATA_DIR:-/mint/data}
MINT_MODE=${MINT_MODE:-core} MINT_MODE=${MINT_MODE:-core}
SERVER_REGION=${SERVER_REGION:-us-east-1} SERVER_REGION=${SERVER_REGION:-us-east-1}