app/Services/DockerService.php
public function push(string $imageName, string $server = null) {

		$this->requireProcess();

		$process = ProcessBuilder::create([
			'docker', 'push', $imageName
		])
			->setTimeout(null)->getProcess();

		$this->processHelper->run($this->output, $process, null, null, OutputInterface::VERBOSITY_NORMAL);
		if($process->getExitCode() !== 0)
			throw new PushFailedException($imageName, 20);
	}
public function push(string $imageName, string $server = null) {

		$this->requireProcess();

		$process = ProcessBuilder::create([
			'docker', 'push', $imageName
		])
			->setTimeout(null)->getProcess();

		$this->processHelper->run($this->output, $process, null, null, OutputInterface::VERBOSITY_NORMAL);
		if($process->getExitCode() !== 0)
			throw new PushFailedException($imageName, 20);
	}
public function push ( string $ imageName , string $ server = null ) { $ this -> requireProcess ( ) ; $ process = ProcessBuilder :: create ( [ 'docker' , 'push' , $ imageName ] ) -> setTimeout ( null ) -> getProcess ( ) ; $ this -> processHelper -> run ( $ this -> output , $ process , null , null , OutputInterface :: VERBOSITY_NORMAL ) ; if ( $ process -> getExitCode ( ) !== 0 ) throw new PushFailedException ( $ imageName , 20 ) ; }
Push the given image to dockerhub. You will most likely need to login before using this

@param string $imageName
@param string|null $server
Push the given image to dockerhub . You will most likely need to login before using this