#!/bin/bash
rm -f /etc/docker/daemon.json
mkdir -p /etc/systemd/system/docker.service.d
cat > /etc/systemd/system/docker.service.d/override.conf << 'EOF'
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --apparmor=false
EOF
systemctl daemon-reload
systemctl restart docker
sleep 2
systemctl is-active docker
