code: function askForDockerPushCommand() {
      if (this.regenerate) return;
  
      const done = this.async();
  
      const prompts = [
          {
              type: 'input',
              name: 'dockerPushCommand',
              message: 'What command should we use for push Docker image to repository?',
              default: this.dockerPushCommand ? this.dockerPushCommand : 'docker push'
          }
      ];
  
      this.prompt(prompts).then(props => {
          this.dockerPushCommand = props.dockerPushCommand;
          done();
      });
  }
docs: Ask For Docker Push Command