Rasa won't connect to action server

That action server was also a docker image that I created from rasa/rasa_core_sdk. I run the action server with command python -m rasa_core_sdk.endpoint --actions actions.