def _tags(self): return " ".join([utils.option("-t ", tag) for tag in self.tags])
def _labels(self): return " ".join([ utils.option("-l ", self.tools.expand(label)) for label in self.labels ])
def _platform(self): platform = self.tools.expand(self.platform) if self.platform else None return utils.option("--platform ", platform)
def _volumes(self): return " ".join([ utils.option("-v ", self.tools.expand(vol)) for vol in self.volumes_default + self.volumes ])
def _buildargs(self): return " ".join([ utils.option("--build-arg ", self.tools.expand(ba)) for ba in self.buildargs ])
def _ports(self): if self.ports is True: return "-P" return " ".join([ utils.option("-p ", self.tools.expand(port)) for port in self.ports ])
def _environment(self): return " ".join([ utils.option("-e ", self.tools.expand(env)) for env in self.environment ])
def _entrypoint(self): return utils.option("--entrypoint ", self.entrypoint)
def _cap_drops(self): return " ".join( [utils.option("--cap-drop ", cap) for cap in self.cap_drops])
def _cap_adds(self): return " ".join( [utils.option("--cap-add ", cap) for cap in self.cap_adds])