You don't want to do this on Ubuntu based distributions.... the OS heavily depends on python (specifically the version it ships with), so changing it can break other things. For a docker image, this may or may not be that big of a deal, but definitely something to keep in mind