Load a container and modify the content
docker run -t -i httpd /bin/bash |
Get the container id
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:
docker commit ff0a3bcde568 slabs-httpd sha256:7133d2b93ee3f135dbc32004aa13d4c0d2dec615b1a2a892c315c3fb8d00814e |
Tag the image with the private registry's location in order to push to it
docker tag slabs-httpd upf.kaloom.io/slabs-httpd |
Push the newly tagged image to the registry
docker push upf.kaloom.io/slabs-httpd |