I'm one of the people that voted to close this question. It was closed almost 15 months ago, so my memory of voting to close it is sketchy, at best. After looking at the question again, I've voted to reopen (and the question is reopened), although I wouldn't be surprised to find that the question is a duplicate (I haven't looked, yet).
Docker is a tool that's used at the system level to run applications in a isolated container. Its use is not inherently programming related. A large portion of its use is in system-level deployment of applications both in professional and non-professional environments. Such questions are appropriate for Super User, Server Fault, or other appropriate Stack Exchange site.
However, Docker is also used as a tool in programming environments, so a significant number of questions about it are on-topic for Stack Overflow. But, just the use of Docker doesn't make the question on-topic. To determine if the question is on-topic, we need to look at what each question is asking and the context in which Docker's being used and the question asked.
This specific question, boils down to: "what command line arguments should I use to execute docker
to be able to repeatedly execute the command without needing to do anything else?" That's not really a programming question. But, in this specific instance the context in which it's being used by the question OP is very clearly a programming context. As such, I feel this question straddles both programming and system level tasks and could be on-topic here on Stack Overflow or on other Stack Exchange sites.
Overall, I think we got it wrong in closing this question. This specific question is about using "software tools commonly used by programmers" in a software development context, even if the question boils down to something that's not 100% "unique to software development".