dockerkubernetesdcos

dummy docker container for benchmarking


I'm benchmarking a tool that monitors docker containers. To do that I need to launch several dummy containers with an orchestration tool such Kubernetes. The containers should be lightweight and shouldn't take any of the machine resources (e.g. ports), since the idea is to run 15 or more of these dummy containers in each machine of a cluster. I don't care about what the container does as long as it keeps running as a daemon and I can monitor it for a long period of time.

Is there any Docker image that meets these requirements and that I can use straight out of the box?.


Solution

  • You can just run an alpine container with a sleep command.

    Something like this:

    docker run -d alpine sh -c 'while sleep 3600; do :; done'