Unable to restart docker container with --restart 'always'

You are fighting the wrong fight: first make sure your container starts properly and stays running. To do that you will need to modify your Dockerfile to fix whatever is wrong with it and create a new image.
Once you mastered that, you can move over to runtime details like restart conditions.