[docker-io] split out the ./pkg/ libraries