Create a file called /media/state/units/docker-local.service
that has the following contents:
[Unit]
Description=docker local
[Service]
PermissionsStartOnly=true
ExecStartPre=/usr/bin/systemctl kill docker.service
ExecStart=/usr/bin/docker -d
[Install]
WantedBy=local.target
sudo systemctl restart local-enable.service
Have fun!
This was working in earlier versions of CoreOS. I'm returning to CoreOS now after some time away (CoreOS 298.0.0) and this trick no longer works:
core@core-01 ~ $ sudo systemctl restart local-enable.service
Failed to restart local-enable.service: Unit local-enable.service failed to load: No such file or directory.
core@core-01 ~ $