You can verify if Docker is correctly setting the variables by printing them. You can use this command to confirm:
docker exec -it <container_id> printenv | grep ConnectionStrings