docker: rename internal functions