The not very secure way (because docker inspect will show it) is to pass an environment variable to
docker run
such as
docker run -e password=abc
or in a file
docker run --env-file myfile
where myfile can contain
password1=abc password2=def
it is also possible to put them in a volume
dock...