minio deployment tutorial via docker

To deploy Minio through Docker, follow the following steps:

  1. Install Docker:
    Make sure Docker is installed on your system. If Docker has not been installed, please refer to the Docker official documentation to install it according to your system type (Linux, Windows, macOS, etc.).
  2. Pull the Minio image:
    Open a terminal or command prompt and run the following command to pull the Minio Docker image:

    docker pull minio/minio
  3. Create data storage directory:
    In the location where you want to store Minio data, create a directory for persistent storage of data. Assume that you want to store Minio data in the /data/minio directory, execute the following command:

    mkdir -p /data/minio
  4. Start the Minio container:
    Run the following command to start the Minio container:

    docker run -p 9000:9000 --name minio \
      -v /data/minio:/data \
      -e "MINIO_ROOT_USER=admin" \
      -e "MINIO_ROOT_PASSWORD=password" \
      minio/minio server /data

    This command will start a container named "minio" and map the container's 9000 port to the host's 9000 port. At the same time, mount the /data/minio directory to the /data directory inside the container to store Minio data. Minio's administrator username and password are also set through environment variables.

  5. Visit Minio Web interface:
    Open the browser and visit http://localhost:9000, you will see Minio's Web interface. Log in to Minio using the administrator username and password you just set (here are "admin" and "password").
  6. Upload and manage objects:
    After successful login, you can upload, manage, delete objects, etc. on Minio's web interface . You can also manage object storage through the API or CLI tools provided by Minio.

In this way, you have successfully deployed the Minio object storage service through Docker. You can use and manage Minio through a browser or other Minio client tools. Hope the above tutorial is helpful to you! If you have additional questions, please feel free to continue asking.

Guess you like

Origin blog.csdn.net/tiansyun/article/details/135014330