code: func GetDockerContext(storeMetadata store.Metadata) (DockerContext, error) {
  	if storeMetadata.Metadata == nil {
  		// can happen if we save endpoints before assigning a context metadata
  		// it is totally valid, and we should return a default initialized value
  		return DockerContext{}, nil
  	}
  	res, ok := storeMetadata.Metadata.(DockerContext)
  	if !ok {
  		return DockerContext{}, errors.New("context metadata is not a valid DockerContext")
  	}
  	return res, nil
  }
docs: // GetDockerContext extracts metadata from stored context metadata