Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 18 for isDocker (0.17 seconds)

  1. cmd/update.go

    	return getModTime(os.Args[0])
    }
    
    // IsDocker - returns if the environment minio is running in docker or
    // not. The check is a simple file existence check.
    //
    // https://github.com/moby/moby/blob/master/daemon/initlayer/setup_unix.go
    // https://github.com/containers/podman/blob/master/libpod/runtime.go
    //
    //	"/.dockerenv":        "file",
    //	"/run/.containerenv": "file",
    func IsDocker() bool {
    	var err error
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  2. cmd/update_test.go

    		}
    	}
    }
    
    func TestDownloadURL(t *testing.T) {
    	minioVersion1 := releaseTimeToReleaseTag(UTCNow())
    	durl := getDownloadURL(minioVersion1)
    	if IsDocker() {
    		if durl != "podman pull quay.io/minio/minio:"+minioVersion1 {
    			t.Errorf("Expected %s, got %s", "podman pull quay.io/minio/minio:"+minioVersion1, durl)
    		}
    	} else {
    		if runtime.GOOS == "windows" {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 10.4K bytes
    - Click Count (0)
  3. cmd/endpoint.go

    							endpoints[i].Hostname()), endpoints[i].Hostname(), logger.ErrorKind)
    					}
    
    					continue
    				}
    
    				// return err if not Docker or Kubernetes
    				// We use IsDocker() to check for Docker environment
    				// We use IsKubernetes() to check for Kubernetes environment
    				isLocal, err := isLocalHost(endpoints[i].Hostname(),
    					endpoints[i].Port(),
    					globalMinioPort,
    				)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  4. cmd/admin-handlers.go

    					RuntimeVersion: server.RuntimeVersion,
    					GCStats:        server.GCStats,
    					MinioEnvVars:   server.MinioEnvVars,
    				})
    			}
    
    			tls := getTLSInfo()
    			isK8s := IsKubernetes()
    			isDocker := IsDocker()
    			healthInfo.Minio.Info = madmin.MinioInfo{
    				Mode:         infoMessage.Mode,
    				Domain:       infoMessage.Domain,
    				Region:       infoMessage.Region,
    				SQSARN:       infoMessage.SQSARN,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 99.7K bytes
    - Click Count (0)
  5. cmd/common-main.go

    )
    
    // serverDebugLog will enable debug printing
    var (
    	serverDebugLog     = env.Get("_MINIO_SERVER_DEBUG", config.EnableOff) == config.EnableOn
    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
    		color.TurnOff()
    	}
    	if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" {
    		color.TurnOff()
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  6. cmd/server_test.go

    	// Content for the object to be uploaded.
    	buffer := bytes.NewReader([]byte("hello world"))
    	// make long object name.
    	longObjName := fmt.Sprintf("%0255d/%0255d/%0255d", 1, 1, 1)
    	if IsDocker() || IsKubernetes() {
    		longObjName = fmt.Sprintf("%0242d/%0242d/%0242d", 1, 1, 1)
    	}
    	// create new HTTP request to insert the object.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 118.1K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt

          }
        }
        return call.messageDone(
          exchange = this,
          requestDone = requestDone && !isSocket,
          responseDone = responseDone && !isSocket,
          socketSinkDone = requestDone && isSocket,
          socketSourceDone = responseDone && isSocket,
          e = e,
        )
      }
    
      fun noRequestBody() {
        call.messageDone(
          exchange = this,
          requestDone = true,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  8. internal/dsync/drwmutex.go

    // Granted - represents a structure of a granted lock.
    type Granted struct {
    	index   int
    	lockUID string // Locked if set with UID string, unlocked if empty
    }
    
    func (g *Granted) isLocked() bool {
    	return isLocked(g.lockUID)
    }
    
    func isLocked(uid string) bool {
    	return len(uid) > 0
    }
    
    // NewDRWMutex - initializes a new dsync RW mutex.
    func NewDRWMutex(clnt *Dsync, names ...string) *DRWMutex {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 20.3K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/encoder.md

    Il existe des cas où vous pourriez avoir besoin de convertir un type de données (comme un modèle Pydantic) en quelque chose de compatible avec JSON (comme un `dict`, `list`, etc.).
    
    Par exemple, si vous devez le stocker dans une base de données.
    
    Pour cela, **FastAPI** fournit une fonction `jsonable_encoder()`.
    
    ## Utiliser `jsonable_encoder` { #using-the-jsonable-encoder }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/path-operation-configuration.md

    Si vous avez une grande application, vous pourriez finir par accumuler **plusieurs tags**, et vous voudrez vous assurer d'utiliser toujours le **même tag** pour les *chemins d'accès* associés.
    
    Dans ces cas, il peut être judicieux de stocker les tags dans un `Enum`.
    
    **FastAPI** le prend en charge de la même manière qu'avec des chaînes simples :
    
    {* ../../docs_src/path_operation_configuration/tutorial002b_py310.py hl[1,8:10,13,18] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 4.6K bytes
    - Click Count (0)
Back to Top