I pull image from docker but the container always restarting

I run docker on bananapi (like raspberry pi).The command run like this:
docker run
–name openhab
–net=host
-v /etc/localtime:/etc/localtime:ro
-v /etc/timezone:/etc/timezone:ro
-v /opt/openhab/conf:/openhab/conf
-v /opt/openhab/userdata:/openhab/userdata
-d
–restart=always
openhab/openhab:armhf-online

after I pull the image and run the container,the container state is alwasys restarting.

Try running ‘docker ps’ to get your container id, then run 'docker logs ’ to get the output of the console for your container. It may give you a clue on why it’s restarting.