I want to start several containers automatically and create something,
but some images, such as a swarm, will automatically stop after starting or starting.
I'm already trying to do it
docker run -d swarm
docker run -d swarm /bin/bash tail -f /dev/null
docker run -itd swarm bash -c "while true; do sleep 1; done"
but "docker ps" shows nothing, and I tried to create a Dockerfile by typing:
FROM swarm
ENTRYPOINT ["echo"]
And the image does not start with an error message:
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"echo\\\": executable file not found in $PATH\"\n".
I cannot understand this error ... How can I start a swarm container launch.?
(Sorry, my English is not very good))
source
share