Generally you can execute remotely using
docker -H ${DOCKER_HOST} ssh://ubuntu@${EC2_INSTANCE} run -it container
but how do I specify my ssh