Connect to Docker Hub

Instead of using public Docker Hub images like we did with mongo:4.2.0 image in Prepare your Application, you can use images from your private Docker Hub repository. Navigate to the integrations page in miru by clicking the Integrations tab in the top left of the home page.

Navigate to the Docker Hub Integration using the options on the left and create an access token for miru to connect to your repository with.

Navigate to the personal access tokens page located in your Docker Hub account settings. Generate a new personal access token to grant miru. Ensure you select Read-only NOT Public Repo Read-only to grant miru access to images in your private repository.

Enter your username and personal access token into miru.

Congratulations! You’ve successfully connected miru with your Docker Hub. miru will have read-only access to images in your private repository. If using repositories from an organization with miru, please ensure your account (that you created the personal access token with) has the necessary permissions to use such repositories.

To use an image from private repositories, simple specify the image reference for your Docker image in your docker-compose.yml file.

<compose-service>:
    image: <namespace>/<repository>:<tag>