You are right. Either you are using docker very wrong, or docker is not meant for this use case.
You say “getting ubuntu server to fetch it’s updated behind proxy”. You shouldn’t be updating Ubuntu from inside of docker. Instead, the system should be somewhat immutable. You should configure the version you want to use as part of the Docker file.
Same with python and keys. You likely want to install python dependencies in the Dockerfile, so that you can install them once and it becomes bundled into the container image. Then you don’t need to use pip behind the proxy.
All plants, animals, mushrooms, bacteria, etc have DNA. Any time a living thing reproduces there can be unique mutations that give the offspring a unique DNA. And, especially if it is a sexual reproduction (having two parents, like in most fruits) the parents DNA is mixed together to form a unique combination of the two parents.