Skip to content

Commit cb14f84

Browse files
authored
Use sudo for docker manipulation in Kind script (#11497)
Signed-off-by: Jakub Stejskal <[email protected]>
1 parent 73efa59 commit cb14f84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.azure/scripts/setup-kind.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ EOF
157157
fi
158158

159159
if is_docker; then
160-
echo "$docker_config" | tee /etc/docker/daemon.json
161-
systemctl restart docker
160+
echo "$docker_config" | sudo tee /etc/docker/daemon.json
161+
sudo systemctl restart docker
162162
else
163163
# Ensure the podman_config is inserted correctly after unqualified-search-registries
164164
sudo awk -v config="$podman_config" '

0 commit comments

Comments
 (0)