mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-30 19:23:31 +00:00
This is based on https://github.com/docker/swarmkit/pull/1965 which adds a direct containerd executor to swarmkit. It is very much a work in progress. With a suitable moby image (such as projects/swarmd/swarmd.yml) something like this should work: runc exec swarmd swarmctl service create --image docker.io/library/nginx:alpine --name nginx runc exec swarmd swarmctl service ls Signed-off-by: Ian Campbell <ian.campbell@docker.com>
5 lines
169 B
Docker
5 lines
169 B
Docker
FROM scratch
|
|
WORKDIR /
|
|
ADD swarmd.tar .
|
|
CMD ["/usr/bin/swarmd", "--containerd-addr=/run/containerd/containerd.sock", "--log-level=debug", "--state-dir=/var/lib/swarmd"]
|