docker: saving container on database in newContainer.

related to #675.