I have now managed the Pulp migration work as expected and to pull containers from Foreman to Docker. The first thing that whilst obvious when you know is that you must always use the Foreman server’s FQDN when making queries and no the IP-Address as this won’t work e.g.
# curl https://$(hostname)/pulp/repos/ --insecure
This also applies if you enter this URL into the browser.
Install the Pulp administration utility:
# pip3 install pulp-cli[pygments]
Check the status of the Pulp service:
# pulp-admin status
# pulp container repository list
Install Docker on the Foreman server in order to test if the containers are now available:
# yum install docker -y
# systemctl enable --now docker
Add Foreman to the list of insecure registries:
# cat /etc/docker/daemon.json
{
"insecure-registries" : ["foreman.test.com","localhost:5000"]
}
Login to Docker
# docker login $(hostname) --username admin --password admin
If this is working you should be able to see your Foreman containers e.g.
# docker search $(hostname)/fedora
Add your containers to a Content-View, then ensure that you Publish and Promote it. If successful you can now select Content->Container Image Tags and view the URL by selecting a tag and then Lifecycle Environments.
Now all you have to do is to copy the string/URL for your lifecycle-env and use it in your “Docker Pull” command.