Is there a way I can run a bash script inside a container and then remove the container, everything in a single line? The script should be able to write to the folder where it's currently at.
I've tried
docker run --rm -ti ubuntu:trusty bash -c 'source runme.sh'
but bash can't find the file, I'm assuming because the container doesn't have access to the folder where the script is.