// updateDockerConfig persists the Docker configuration
// of the currently installed application
updateDockerConfig persists the Docker configuration
of the currently installed application
// updateDockerConfig persists the Docker configuration // of the currently installed application
func (p *updatePhaseInit) updateDockerConfig() error {
	cluster, err := p.Backend.GetLocalSite(defaults.SystemAccountID)
	if err != nil {
		return trace.Wrap(err)
	}
	if !cluster.ClusterState.Docker.IsEmpty() {
		return nil
	}
	cluster.ClusterState.Docker = p.existingDocker
	_, err = p.Backend.UpdateSite(*cluster)
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func ( p * updatePhaseInit ) updateDockerConfig ( ) error { cluster , err := p . Backend . GetLocalSite ( defaults . SystemAccountID ) if err != nil { return trace . Wrap ( err ) } if ! cluster . ClusterState . Docker . IsEmpty ( ) { return nil } cluster . ClusterState . Docker = p . existingDocker _ , err = p . Backend . UpdateSite ( * cluster ) if err != nil { return trace . Wrap ( err ) } return nil }
updateDockerConfig persists the Docker configuration
of the currently installed application
updateDockerConfig persists the Docker configuration of the currently installed application
// Nothing to do