ctr may not replaced docker command soon ,but I like it.
# ctr image pull docker.io/library/tomcat:8
# ctr run -d --runc-binary=/usr/local/bin/crun docker.io/library/tomcat:8 tomcat
# ctr c ls
CONTAINER IMAGE RUNTIME
tomcat docker.io/library/tomcat:8 io.containerd.runc.v2
# ctr task exec -t --exec-id 1 tomcat /bin/bash
root@tomcat:/usr/local/tomcat# ps -eaf
UID PID PPID C STIME TTY TIME CMD
root 1 0 1 08:03 ? 00:00:01 /opt/java/openjdk/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties...
root 41 0 0 08:05 pts/0 00:00:00 /bin/bash
root 44 41 0 08:05 pts/0 00:00:00 ps -eaf
root@tomcat:/usr/local/tomcat# exit
# ctr task kill tomcat
# ctr c delete tomcat
# ctr c ls
CONTAINER IMAGE RUNTIME
#
that’s all