Why screen folder in /var/run disappears in Docker container after running Ansible playbook?
Rather than solving the immediate problem you're having, let me suggest an alternative solution to your actual problem:


  I need screen, so I can use multiple interactive shells in one instance of Docker. If I run multiple Docker instances, each takes 1G of RAM, so 10+ instances will kill my RAM.


Run screen (or tmux, but screen if you insist) locally on your workstation.  Start up your docker container, and in the windows where you want to do something on the container, use docker exec -it &lt;container-id&gt; bash to get a new interactive shell on the container.  This will be much simpler than running screen inside the container, and allows you to also have windows running commands on your workstation.

You may also want to look into using Vagrant with the Docker provider to simplify the process of doing development on a Docker container.