docker: fixed #651.

closes #651.