I installed containerd on Amazon Linux 2 using the suggested commands:
sudo amazon-linux-extras enable docker
sudo yum install -y containerd
I added this in the EC2 user data script to run at instance launch time.
But, how am I supposed to start containerd
(a container runtime - similar to docker) as a service? Since I installed through yum
there doesn't seem to include a systemd service file. The binary is located on /usr/bin/containerd
. Am I supposed to use echo
in the boot script to generate a systemd service file or what is a good practice?