What is the command to get the docker container id from the container name?
You can try this:
docker inspect --format="{{.Id}}" container_name
This approach is OS independent.