Run:
docker build -t $imagename:$version .
Run:
docker run --name $containername -dp host_port:container_port $imagename:$version
##Open the host_port
above on the security group of your dockerhost
Access your app:
public_ip_dockerhost:$host_port