Publish Images to Docker Hub
Using the remote repositories feature, you can publish container images from a Space Packages registry to Docker Hub.
In Docker Hub, create an access token with the Write permission. Save the created token to a safe location.
Configure publishing of images to a Space Packages registry as described in Publish Container Images.
In Space, open the registry where you published the image.
Configure a remote repository:
In repository settings, open the Remote Repositories tab and click New remote repository.
Specify remote repository settings:
URL: the Docker Hub URL. To get one, you can click the Click to use Docker Hub URL link. Important: Add your Docker Hub username to the URL. For example, if your username is
hub-username
:https://registry-1.docker.io/hub-username
In Authentication, select Basic:
Username: your Docker Hub username.
Password: the Docker Hub token you've created in step 1.
Click Create.
Publish the required artifact to the remote repository (Docker Hub):
In the image menu, choose Publish to remote repository.
In the list, select the mirror created on previous step and click Publish.