You are working under delusion. The docker image contains only what was installed in it. This is usually a very shortened version of the operating system for efficiency reasons.
A docker container is launched from an image - and that a running version that can change and save state, but can be dropped.
docker run . run , ( ).
docker exec . , , , ... , (, ). - , ... .
run , mount. , , - , . -v /path/on/host:/path_in/container. , . docker run -v /mount , docker, . : docker create -v /path/to/data --name data_for_acontainer some_basic_image
:
docker run -d --volumes-from data_for_acontainer some_app_image
/path/to/data. "" - .