add metadata to docker resource