Docker: Backup/Restore running container

get list of containers:

1
docker ps -a

dump running container:

1
docker export $CONTAINER_ID > $CONTAINER_ID-backup.tar

restore container:

1
docker import - slava/$CONTAINER_ID-backup < $CONTAINER_ID-backup.tar