Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsDocker (0.09 sec)

  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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (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" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 10.4K bytes
    - Viewed (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,
    				)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  4. 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()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. docs/fr/docs/async.md

    ```Python
    burgers = await get_burgers(2)
    ```
    
    Le mot-clé important ici est `await`. Il informe Python qu'il faut attendre ⏸ que `get_burgers(2)` finisse d'effectuer ses opérations 🕙 avant de stocker les résultats dans la variable `burgers`. Grâce à cela, Python saura qu'il peut aller effectuer d'autres opérations 🔀 ⏯ pendant ce temps (comme par exemple recevoir une autre requête).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top