Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
193 views
in Technique[技术] by (71.8m points)

Can’t run the Minio client

I am a complete beginner and I was just introduced to minIO and I wanted to run it for a local project. Now I wanted to run minIO on Docker and also its client on Docker.

So I take a quick look at the documentation and I setup the Minio image in my docker. I also was able to successfully fo to my port 9000 and access it using the access key and the secret key. The interface works fine. Now I want to download the MinIO client and access the interface from the command line such as I want to run “mc ls” and get some response back. So I stop my Minio container and I write the commands mentioned in the documentation, “docker pull minio/mc” and “docker run minio/mc ls play” and now when I try to start the container of minio/mc in Docker it exits immediately.

I cannot get the client to start and neither can I run any mc commands from my macOS terminal.

question from:https://stackoverflow.com/questions/65948942/can-t-run-the-minio-client

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Every instance of the docker container for minio/mc can only run 1 command while creating the container such as docker run minio/mc command (eg: docker run minio/mc ls). Then the container is useless, so for a mac PC the better option is to install the mc client using Homebrew.

$ brew install minio


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...