fix: update README.md for new release (#12637)

rename all 'docker run' commands to 'podman run'

fixes #12633
This commit is contained in:
Harshavardhana
2021-07-07 18:07:29 -07:00
committed by GitHub
parent c99d399d09
commit 2ce60d772b
13 changed files with 58 additions and 113 deletions

View File

@@ -466,7 +466,7 @@ func getDownloadURL(releaseTag string) (downloadURL string) {
// Check if we are docker environment, return docker update command
if IsDocker() {
// Construct release tag name.
return fmt.Sprintf("docker pull minio/minio:%s", releaseTag)
return fmt.Sprintf("podman pull minio/minio:%s", releaseTag)
}
// For binary only installations, we return link to the latest binary.

View File

@@ -92,8 +92,8 @@ func TestDownloadURL(t *testing.T) {
minioVersion1 := releaseTimeToReleaseTag(UTCNow())
durl := getDownloadURL(minioVersion1)
if IsDocker() {
if durl != "docker pull minio/minio:"+minioVersion1 {
t.Errorf("Expected %s, got %s", "docker pull minio/minio:"+minioVersion1, durl)
if durl != "podman pull minio/minio:"+minioVersion1 {
t.Errorf("Expected %s, got %s", "podman pull minio/minio:"+minioVersion1, durl)
}
} else {
if runtime.GOOS == "windows" {