How do I disable X-Pack security on the elasticsearch 5.2.2 docker image?

Thanks. I tried doing that with the following command. But it did not take effect. How should I be disabling it on the docker image?

docker run -d -p 9200:9200 --name elasticsearch -e "http.host=0.0.0.0" -e "transport.host=127.0.0.1" -e "xpack.security.enabled=false" -v /data/sw/elasticsearch/data:/usr/share/elasticsearch/data docker.elastic.co/elasticsearch/elasticsearch:5.2.2