handle docker port mapping