We are trying to leverage a relative new feature released by docker - which is using the containerd image store instead of the default docker - which does not support storing attestations.
On the official Docker docs (titled “containerd image store with Docker Engine”)
it suggests to change the Docker Daemon settings by manually adding the daemon.json to the /etc/docker/ folder - which of course is not supported as part of a CircleCI pipeline.
We tried using SSH and manually setting this up (and later move the commands to the pipeline), but could not restart the Docker Daemon successfully.
circleci@c4310c9b0b97:/etc/docker$ sudo systemctl restart docker
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
circleci@c4310c9b0b97:/etc/docker$ sudo service docker restart
/etc/init.d/docker: 61: ulimit: error setting limit (Operation not permitted)
circleci@c4310c9b0b97:/etc/docker$ sudo service docker --full-restart
* Docker already stopped - file /var/run/docker-ssd.pid not found.
/etc/init.d/docker: 61: ulimit: error setting limit (Operation not permitted)
I have not touched anything other than the default config… we don’t even have setup_remote_docker as one of the steps
Any other commands I should try using?
hmm if you are running it in Circleci machine then i think it is expected that you can’t restart the docker even if you run sudo apt-get update you will see some warnings.
I think they have some kind of security setup on there machines
I hope you are not running docker inside docker because circleci does not support running docker inside docker you can check the answer here . try using this
image for your machine i hope it will fix the problem.