docker config
Code Block |
---|
# cat /var/snap/docker/384/config/daemon.json
{
"insecure-registries":["upf.kaloom.io"],
"log-level": "debug",
"storage-driver": "aufs",
"tlscert": "/etc/pki/tls/certs/ca-bundle.crt"
} |
Load a container and modify the content
Code Block |
---|
docker run -t -i httpd /bin/bash |
Get the container id
Code Block |
---|
root@upfc:~# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a9347d27dc01 httpd "/bin/bash" 2 minutes ago Exited (0) 2 seconds ago optimistic_panini
fe5286295257 samuelebistoletti/docker-statsd-influxdb-grafana:latest "/usr/bin/supervisord" 16 minutes ago Up 16 minutes 0.0.0.0:3003->3003/tcp, 0.0.0.0:8086->8086/tcp, 0.0.0.0:8125->8125/udp, 0.0.0.0:3004->8888/tcp docker-statsd-influxdb-grafana
ff0a3bcde568 httpd "/bin/bash" 25 minutes ago Exited (0) 19 minutes ago goofy_wiles
f7640d912fe9 registry:2 "/entrypoint.sh /etc..." 17 hours ago Up 17 hours 0.0.0.0:5000->5000/tcp docker-registry_registry_1 |
Create a new image with the changes:
Code Block |
---|
docker commit ff0a3bcde568 slabs-httpd
sha256:7133d2b93ee3f135dbc32004aa13d4c0d2dec615b1a2a892c315c3fb8d00814e |
Tag the image with the private registry's location in order to push to it
Code Block |
---|
docker tag slabs-httpd upf.kaloom.io/slabs-httpd |
Push the newly tagged image to the registry
Code Block |
---|
docker push upf.kaloom.io/slabs-httpd |
Verify the catalog and tag
Code Block |
---|
root@upfc:~/docker-registry# curl -s http://10.197.4.244:5000/v2/_catalog | jq .repositories[]
"slabs-httpd"
root@upfc:~/docker-registry# curl -s http://10.197.4.244:5000/v2/slabs-httpd/tags/list | jq .tags
[
"latest"
] |
Start minikube
Code Block |
---|
minikube start --insecure-registry "upf.kaloom.io" |
https://www.linuxtechi.com/setup-docker-private-registry-centos-7-rhel-7/