Consul with docker

Hi, I am working with docker and consul but I couldn’t resolve the issue that how can I change the key value in docker by fetching values from consul.