harbor/tests/apitests/python/update_docker_cfg.sh
danfengliu 1801a3cee3 Add manifest and CNAB replication tests
1. Add manifest and CNAB replication tests;
2. Duplicate ORAS and sigularity tests from API test to nightly common
tests;
3. Optimize get dns code in CI;
4. Optimize E2E dockerfile;
5. Sample image size should be cover requirement for large size like 512M.

Signed-off-by: danfengliu <danfengl@vmware.com>
2021-04-02 15:39:30 +08:00

8 lines
267 B
Bash
Executable File

#!/bin/sh
if [ $(cat /$HOME/.docker/config.json |grep experimental |wc -l) -eq 0 ];then
sed -i '$d' /$HOME/.docker/config.json
sed -i '$d' /$HOME/.docker/config.json
echo -e "},\n \"experimental\": \"enabled\"\n}" >> /$HOME/.docker/config.json
fi