DevOps@RajeshKumar.XYZ
https://bootstrap-it.com/docker-images
#!/bin/bash
apt update
apt install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys
58118E89F3A912897C070ADBF76221572C52609D
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" >
/etc/apt/sources.list.d/docker.list
apt update
apt install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
apt update
apt install -y docker-engine
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest f49eec89601e 2 weeks ago 129 MB
centos latest 67591570dd29 7 weeks ago 192 MB
$
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
neroinc/ubuntu-golang-crosscompile 3 [OK]
akiraw95/ubuntu-golang-glide golang + glide buil... 1
bouk/ubuntu-golang 1
nimmis/golang Builds a Docker con… 1 [OK]
proudh/ubuntu-golang-glide golang+glide build... 1
f5lenny/ubuntu-wily-golang Ubuntu Wily with Go... 0 [OK]
coolsvap/ubuntu-golang golang 0 [OK]
netroby/ubuntu-golang 0 [OK]
IMAGE CREATED CREATED BY SIZE
f49eec89601e 2 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 0 B
<missing> 2 weeks ago /bin/sh -c mkdir -p /run/systemd && echo '... 7 B
<missing> 2 weeks ago /bin/sh -c sed -i 's/^#\s*\(deb.*universe\... 1.9 kB
<missing> 2 weeks ago /bin/sh -c rm -rf /var/lib/apt/lists/* 0 B
<missing> 2 weeks ago /bin/sh -c set -xe && echo '#!/bin/sh' >... 745 B
<missing> 2 weeks ago /bin/sh -c #(nop) ADD file:68f83d996c38a09... 129 MB
REPOSITORY TAG IMAGE ID CREATED SIZE
oneline latest a090deb25fa7 24 seconds ago 349 MB
manylines latest f6c79d168010 6 minutes ago 651 MB
myimage latest 004acd2526d0 13 minutes ago 129 MB
webserver latest 983d3f27fb40 3 hours ago 268 MB
ubuntu 16.04 f49eec89601e 2 weeks ago 129 MB
ubuntu latest f49eec89601e 2 weeks ago 129 MB
alpine latest 88e169ea8f46 6 weeks ago 3.98 MB
centos latest 67591570dd29 7 weeks ago 192 MB
Centos 6.6 d03626170061 5 months ago 203 MB
firewall-cmd --zone=public --add-port=5000/tcp
firewall-cmd --zone=public --add-port=5000/tcp --permanent
Install Docker Registry using your distribution package manager
Run Docker Registry itself as a Docker image-based container
/var/lib/docker/volumes/
c5df9d1ab5cd745d8b3e8eed31d79c5d950fcd7f814616449c7a9ab7a490
b84c/_data/docker/registry/v2/repositories/hello-world/
mkdir ~/certs
cp stuff.* certs
mkdir ~/certs
cp stuff.* certs
[if you received an intermediary certificate:]
cat stuff.crt intermediate-stuff.pem > ~/certs/stuff.crt
docker run -d -p 5000:5000 --restart=always --name registry \
-v `pwd`/certs:/certs \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/stuff.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/stuff.key \
registry
FROM registry
ADD /certs/ /home/
ENV REGISTRY_HTTP_TLS_CERTIFICATE=/certs/stuff.crt
REGISTRY_HTTP_TLS_KEY=/certs/stuff.key
EXPOSE 5000
docker run -d -p 5000:5000 --restart=always --name registry \
-v `pwd`/config.yml:/etc/docker/registry/config.yml \
registry
~/.docker/trust/private/root_keys/
lb:
image: dockercloud/haproxy
links:
- web
ports:
- "80:80"
roles:
- global
web:
image: dockercloud/quickstart-python
links:
- redis
target_num_containers: 4
redis:
image: redis
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
neroinc/ubuntu-golang-crosscompile 3 [OK]
akiraw95/ubuntu-golang-glide golang + glide buil... 1
bouk/ubuntu-golang 1
nimmis/golang Builds a Docker con… 1 [OK]
proudh/ubuntu-golang-glide golang+glide build... 1
f5lenny/ubuntu-wily-golang Ubuntu Wily with Go... 0 [OK]
coolsvap/ubuntu-golang golang 0 [OK]
netroby/ubuntu-golang 0 [OK]
REPOSITORY TAG IMAGE ID CREATED SIZE
oneline latest a090deb25fa7 24 seconds ago 349 MB
manylines latest f6c79d168010 6 minutes ago 651 MB
myimage latest 004acd2526d0 13 minutes ago 129 MB
webserver latest 983d3f27fb40 3 hours ago 268 MB
ubuntu 16.04 f49eec89601e 2 weeks ago 129 MB
ubuntu latest f49eec89601e 2 weeks ago 129 MB
alpine latest 88e169ea8f46 6 weeks ago 3.98 MB
centos latest 67591570dd29 7 weeks ago 192 MB
Centos 6.6 d03626170061 5 months ago 203 MB
Install Docker Registry using your distribution package manager
Run Docker Registry itself as a Docker image-based container
/var/lib/docker/volumes/
c5df9d1ab5cd745d8b3e8eed31d79c5d950fcd7f814616449c7a9ab7a490
b84c/_data/docker/registry/v2/repositories/hello-world/
docker run -d -p 5000:5000 --restart=always --name registry \
-v `pwd`/certs:/certs \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/stuff.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/stuff.key \
registry
https://bootstrap-it.com/docker-images