Containers running through docker run xxx will not be restarted when the server is restarted.
There are two ways to achieve this, the self-starting of the container.
Way a docker run xxx later, you can use docker update xxx container the above mentioned id --restart = Always Second way in Docker - plus restart compose.yml in: always to be by Docker Update -h View More Help