run

docker run /bin/bash -c "while true;do echo 1; sleep 30;done"

command

command: /bin/bash -c "while true; echo 1; do sleep 1; done"

2