Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?.

like image 544
Brandon Avatar asked May 24 '26 06:05

Brandon


1 Answers

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'

like image 123
Wassim Dhif Avatar answered May 27 '26 09:05

Wassim Dhif



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!