provision/docker: remove unused function
provision/docker: remove some dead code