Containers are not VMs, they are effectively processes (in one way of thinking). Thus, an OS restart within a container doesn’t make sense, and is therefore not possible. One kills, stops, or restarts containers, e.g.
In the context of your question, and depending on the specifics of your container, it probably makes the most sense to restart the container in question.