Skipping empty lines in .dockerignore

Docker-DCO-1.1-Signed-off-by: Ian Babrou <ibobrik@gmail.com> (github: bobrik)
Set state running before dumping to disk

Fixes #4766
Docker-DCO-1.1-Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com> (github: LK4D4)
Merge pull request #6991 from bobrik/empty-dockerignore

Skipping empty lines in .dockerignore
Merge pull request #6954 from LK4D4/fix_container_run_after_restart_#4766

Set state running before dumping to disk