Setting up your own private Docker registry
In this article, we are going to set up our private Docker registry in CentOS7 VM.
We are going to use the VM (docker-loc-registry) to set up the private Docker registry.
VM (docker-loc-registry) details:
[root@docker-loc-registry ~]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@docker-loc-registry ~]#
[root@docker-loc-registry ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.43.48 docker-loc-registry
[root@docker-loc-registry ~]#
First, we will install the docker as below,
[root@docker-loc-registry ~]# yum install docker
Install the Docker Registry and Start & enable the Docker Registry Service
[root@docker-loc-registry ~]# yum install docker-distribution
[root@docker-loc-registry ~]# systemctl start docker-distribution.service
[root@docker-loc-registry ~]# systemctl enable docker-distribution.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker-distribution.service to /usr/lib/systemd/system/docker-distribution.service.
[root@docker-loc-registry ~]#
Docker Registry settings can be found below file,
[root@docker-loc-registry ~]# cat /etc/docker-distribution/registry/config.yml
version: 0.1
log:
fields:
service: registry
storage:
cache:
layerinfo: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
[root@docker-loc-registry ~]#
Images will be saved in the directory ‘/var/lib/registry’ and service will use the port number :5000
so our docker registry can be accessed by using ‘docker-loc-registry:5000’
We can add our insecure registry to Docker engine by editing the file ‘/etc/docker/daemon.json’ and restart docker service.
[root@docker-loc-registry ~]# cat /etc/docker/daemon.json
{
“insecure-registries” : [“docker-loc-registry:5000”]
}
[root@docker-loc-registry ~]#
[root@docker-loc-registry ~]# systemctl restart docker
[root@docker-loc-registry ~]#
As of now, we do not have any docker images,
[root@docker-loc-registry ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
[root@docker-loc-registry ~]#
We can pull the ‘nginx’ docker image from Docker Hub and push/store it our local registry.
[root@docker-loc-registry ~]# docker pull nginx
Using default tag: latest
Trying to pull repository docker.io/library/nginx …
latest: Pulling from docker.io/library/nginx
27833a3ba0a5: Pull complete
ea005e36e544: Pull complete
d172c7f0578d: Pull complete
Digest: sha256:e71b1bf4281f25533cf15e6e5f9be4dac74d2328152edf7ecde23abc54e16c1c
Status: Downloaded newer image for docker.io/nginx:latest
[root@docker-loc-registry ~]#
Listing out docker images:
[root@docker-loc-registry ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/nginx latest 27a188018e18 2 weeks ago 109 MB
[root@docker-loc-registry ~]#
We are going to give tag to ‘nginx’ image as ‘docker-loc-registry:5000/nginx_lo_reg’
[root@docker-loc-registry ~]# docker tag nginx docker-loc-registry:5000/nginx_lo_reg
[root@docker-loc-registry ~]#
Listing out docker images:
[root@docker-loc-registry ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker-loc-registry:5000/nginx_lo_reg latest 27a188018e18 2 weeks ago 109 MB
docker.io/nginx latest 27a188018e18 2 weeks ago 109 MB
[root@docker-loc-registry ~]#
Now push that image to our private registry as below,
[root@docker-loc-registry ~]# docker push docker-loc-registry:5000/nginx_lo_reg
The push refers to a repository [docker-loc-registry:5000/nginx_lo_reg]
fc4c9f8e7dac: Pushed
912ed487215b: Pushed
5dacd731af1b: Pushed
latest: digest: sha256:c10f4146f30fda9f40946bc114afeb1f4e867877c49283207a08ddbcf1778790 size: 948
[root@docker-loc-registry ~]#
we can see that Docker image ‘nginx_lo_reg ‘ is stored under location ‘/var/lib/registry’ as below,
[root@docker-loc-registry ~]# ls -lrt /var/lib/registry/docker/registry/v2/repositories
total 0
drwxr-xr-x. 5 root root 55 May 4 18:28 nginx_lo_reg
[root@docker-loc-registry ~]#
We can remove the images which we have pulled from Docker Hub,
[root@docker-loc-registry ~]# docker image remove docker-loc-registry:5000/nginx_lo_reg docker.io/nginx
Untagged: docker-loc-registry:5000/nginx_lo_reg:latest
Untagged: docker-loc-registry:5000/nginx_lo_reg@sha256:c10f4146f30fda9f40946bc114afeb1f4e867877c49283207a08ddbcf1778790
Untagged: docker.io/nginx:latest
Untagged: docker.io/nginx@sha256:e71b1bf4281f25533cf15e6e5f9be4dac74d2328152edf7ecde23abc54e16c1c
Deleted: sha256:27a188018e1847b312022b02146bb7ac3da54e96fab838b7db9f102c8c3dd778
Deleted: sha256:261d1996088c57b71d8ea9412f719bcbb8f4cb68a6e463d30abb85cc5fc5724b
Deleted: sha256:e6fbd1f039a7391ab57afeb1b11a73781bcbd6ae8041d98c5988b90c46ce5726
Deleted: sha256:5dacd731af1b0386ead06c8b1feff9f65d9e0bdfec032d2cd0bc03690698feda
[root@docker-loc-registry ~]#
No image is available as below,
[root@docker-loc-registry ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
[root@docker-loc-registry ~]#
Now we can pull the images from our private registry as below,
[root@docker-loc-registry ~]# docker pull docker-loc-registry:5000/nginx_lo_reg
Using default tag: latest
Trying to pull repository docker-loc-registry:5000/nginx_lo_reg …
latest: Pulling from docker-loc-registry:5000/nginx_lo_reg
27833a3ba0a5: Pull complete
ea005e36e544: Pull complete
d172c7f0578d: Pull complete
Digest: sha256:c10f4146f30fda9f40946bc114afeb1f4e867877c49283207a08ddbcf1778790
Status: Downloaded newer image for docker-loc-registry:5000/nginx_lo_reg:latest
[root@docker-loc-registry ~]#
List out the available docker images,
[root@docker-loc-registry ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker-loc-registry:5000/nginx_lo_reg latest 27a188018e18 2 weeks ago 109 MB
[root@docker-loc-registry ~]#
Hence, we have set up our simple private Docker registry and we did docker images push and pull.
What’s up?
I found this article very interesting…please read!
Do you remember the blockbuster hit film The Matrix that was released in 1999? You may not know this, but it has deep spiritual implications concerning the times we are living in and Bible prophecy.
It tells a story of how these “agents” are trying to turn us into machines. We are closer then ever before for this to become a reality when they cause us to receive an implantable microchip in our body during a time when physical money will be no more.
You may have seen on NBC news concerning the implantable RFID microchip that some people are getting put in their hand to make purchases, but did you know this microchip matches perfectly with prophecy in the Bible?
“He (the false prophet who deceives many by his miracles) causes all, both small and great, rich and poor, free and slave, to receive a mark on their right hand or on their foreheads, and that no one may buy or sell except one who has the mark or the name of the beast, or the number of his name…
You also may have heard of the legendary number “666” that people have been speculating for possibly thousands of years on what it actually means. This article shares something I haven’t seen before, and I don’t think there could be any better explanation for what it means to calculate 666. This is no hoax. Very fascinating stuff!
…Here is wisdom. Let him who has understanding calculate the number of the beast, for it is the number of a man: His number is 666″ (Revelation 13:16-18 NKJV).
To see all the details showing why the Bible foretold of all these things, check out this article!
Article: https://biblewoke.com/rfid-mark-of-the-beast-666-revealed
GOD is sending out His end time warning:
“Then a third angel followed them, saying with a loud voice, “If anyone worships the beast and his image, and receives his mark on his forehead or on his hand, he himself shall also drink of the wine of the wrath of God, which is poured out full strength into the cup of His indignation. He shall be tormented with fire and brimstone in the presence of the holy angels and in the presence of the Lamb. And the smoke of their torment ascends forever and ever; and they have no rest day or night, who worship the beast and his image, and whoever receives the mark of his name” (Revelation 14:9-11).
In the Islamic religion they have man called the Mahdi who is known as their messiah of whom they are waiting to take the stage. There are many testimonies from people online who believe this man will be Barack Obama who is to be the biblical Antichrist based off dreams they have received. I myself have had strange dreams about him like no other person. So much so that I decided to share this information.
He came on stage claiming to be a Christian with no affiliation to the Muslim faith…
“In our lives, Michelle and I have been strengthened by our Christian faith. But there have been times where my faith has been questioned — by people who don’t know me — or they’ve said that I adhere to a different religion, as if that were somehow a bad thing,” – Barack Obama
…but was later revealed by his own family members that he indeed is a devout Muslim.
So what’s in the name? The meaning of someones name can say a lot about a person. God throughout history has given names to people that have a specific meaning tied to their lives. How about the name Barack Obama? Let us take a look at what may be hiding beneath the surface…
“And He (Jesus) said to them (His disciples), ‘I saw Satan fall like lightning from heaven'” (Luke 10:18).
In the Hebrew language we can uncover the meaning behind the name Barack Obama.
Barack, also transliterated as Baraq, in Hebrew is: lightning
baraq – Biblical definition:
From Strongs H1299; lightning; by analogy a gleam; concretely a flashing sword: – bright, glitter (-ing, sword), lightning. (Strongs Hebrew word H1300 baraq baw-rawk’)
Barak ‘O’bamah, The use of bamah is used to refer to the “heights” of Heaven.
bamah – Biblical definition:
From an unused root (meaning to be high); an elevation: – height, high place, wave. (Strongs Hebrew word H1116 bamah baw-maw’)
The day following the election of Barack Obama (11/04/08), the winning pick 3 lotto numbers in Illinois (Obama’s home state) for 11/5/08 were 666.
Obama was a U.S. senator for Illinois, and his zip code was 60606.
Seek Jesus while He may be found…repent, confess and forsake your sins and trust in the savior! Jesus says we must be born again by His Holy Spirit to enter the kingdom of God…God bless!