mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-16 23:35:20 +01:00
4d501030b6
Signed-off-by: danfengliu <danfengl@vmware.com>
8 lines
282 B
Bash
Executable File
8 lines
282 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $(cat /$HOME/.docker/config.json |grep experimental |wc -l) -eq 0 ];then
|
|
sudo sed -i '$d' /$HOME/.docker/config.json
|
|
sudo sed -i '$d' /$HOME/.docker/config.json
|
|
sudo echo -e "},\n \"experimental\": \"enabled\"\n}" >> /$HOME/.docker/config.json
|
|
fi
|