I'm running my image like this:
docker run -v $PWD:/home/project -it aos /bin/bash -c "source source_me.sh && /bin/bash"
I wanted the script source_me to be sourced when entering. This script has some easy functions to be called with small names. However, in this case the source is not applied, because a new bash is started after the source.
Trying just
docker run -v $PWD:/home/project -it aos /bin/bash -c "source source_me.sh"
Simply returns because it finishes execution.
How can I automatically make the source stuff sourced so the user can use the commands when he enters the docker run?