docker: remove unused asserts.

related to #623.