| 871 | } |
| 872 | |
| 873 | pub fn push<Stdout, Stderr>( |
| 874 | &self, |
| 875 | image: &ContainerImage, |
| 876 | stdout_output: &mut Stdout, |
| 877 | stderr_output: &mut Stderr, |
| 878 | should_abort: &CommandKiller, |
| 879 | ) -> Result<(), DockerError> |
| 880 | where |
| 881 | Stdout: FnMut(String), |
| 882 | Stderr: FnMut(String), |
| 883 | { |
| 884 | info!("Docker push {:?}", image); |
| 885 | for image_name in image.image_names() { |
| 886 | let args = vec![ |
| 887 | "--config", |
| 888 | self.config_path.path().to_str().unwrap_or(""), |
| 889 | "push", |
| 890 | image_name.as_str(), |
| 891 | ]; |
| 892 | docker_exec(&args, &self.get_all_envs(&[]), stdout_output, stderr_output, should_abort)? |
| 893 | } |
| 894 | |
| 895 | Ok(()) |
| 896 | } |
| 897 | |
| 898 | pub fn tag<Stdout, Stderr>( |
| 899 | &self, |