Is there any advantage of running Tensorflow in a docker container rather than just pip installing it

So i was checking out this tensorflow installation in docker container. Is it helpful? Or pip installing is enough?