Skip to content
Snippets Groups Projects

Done with hash escaping on all docs

Merged Daniel Juarez Gonzalez requested to merge qa into master
37 files
+ 386
383
Compare changes
  • Side-by-side
  • Inline
Files
37
+ 19
19
@@ -12,27 +12,27 @@ CERN CentOS 7 provides two versions of docker:
</ul>
To install run on your system as root:
<pre>
# yum install docker
# yum install docker-latest
&#35; yum install docker
&#35; yum install docker-latest
</pre>
<em>Note:</em> While two above versions can be installed in parallel, only one can be used
on the system at any given time (different data storage paths, different system services started).
<p>
To configure and start <b>docker</b> system service run:
<pre>
# systemctl enable docker
# systemctl start docker
&#35; systemctl enable docker
&#35; systemctl start docker
</pre>
and run docker using:
<pre>
# /usr/bin/docker -v
&#35; /usr/bin/docker -v
Docker version 1.10.3, build cb079f6
</pre>
<p>
To configure and start <b>docker-latest</b> system service run:
<pre>
# systemctl enable docker-latest
# systemctl start docker-latest
&#35; systemctl enable docker-latest
&#35; systemctl start docker-latest
</pre>
and in addition edit <b>/etc/sysconfig/docker</b>
adding a line:
@@ -41,7 +41,7 @@ DOCKERBINARY=/usr/bin/docker-latest
</pre>
and run docker using:
<pre>
# /usr/bin/docker -v
&#35; /usr/bin/docker -v
Docker version 1.12.1, build 84527a0
</pre>
@@ -65,7 +65,7 @@ For full documentation about building images please refer to <a href="https://do
<ul>
<li> Pull base image from registry:
<pre>
# docker pull gitlab-registry.cern.ch/linuxsupport/cc7-base:latest
&#35; docker pull gitlab-registry.cern.ch/linuxsupport/cc7-base:latest
Trying to pull repository gitlab-registry.cern.ch/linuxsupport/cc7-base ...
latest: Pulling from gitlab-registry.cern.ch/linuxsupport/cc7-base
@@ -75,14 +75,14 @@ For full documentation about building images please refer to <a href="https://do
</pre>
<li> List images:
<pre>
# docker images
&#35; docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
gitlab-registry.cern.ch/linuxsupport/cc7-base latest d448f62dd7c4 13 days ago 466.5 MB
</pre>
<li> Create a Dockerfile in subdirectory:
<pre>
# mkdir cc7-test; cd cc7-test
# vim Dockerfile
&#35; mkdir cc7-test; cd cc7-test
&#35; vim Dockerfile
</pre>
containing:
<pre>
@@ -130,15 +130,15 @@ For full documentation about building images please refer to <a href="https://do
</pre>
<li> List images:
<pre>
# docker images
&#35; docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
cc7-test 20160921 17e8fa7062f9 36 seconds ago 1.139 GB
gitlab-registry.cern.ch/linuxsupport/cc7-base latest d448f62dd7c4 13 days ago 466.5 MB
</pre>
<li> Test your image:
<pre>
# docker run -t -i cc7-test:20160921 /bin/bash
[root@41b570bb00c6 /]# gcc -v
&#35; docker run -t -i cc7-test:20160921 /bin/bash
[root@41b570bb00c6 /]&#35; gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
@@ -146,21 +146,21 @@ For full documentation about building images please refer to <a href="https://do
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man [...] --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
[root@41b570bb00c6 /]# exit
[root@41b570bb00c6 /]&#35; exit
exit
</pre>
<li>Tag the image:
<pre>
# docker tag 17e8fa7062f9 gitlab-registry.cern.ch/{group/}/cc7-test:20160921
&#35; docker tag 17e8fa7062f9 gitlab-registry.cern.ch/{group/}/cc7-test:20160921
</pre>
<li> And push it to registry (note: the registry must be preconfigured in GitLab first):
<pre>
# docker login gitlab-registry.cern.ch
&#35; docker login gitlab-registry.cern.ch
Username: YourLogin
Password: YourPassword
Login Succeeded
# docker push gitlab-registry.cern.ch/{group/}/cc7-test:20160921
&#35; docker push gitlab-registry.cern.ch/{group/}/cc7-test:20160921
The push refers to a repository [gitlab-registry.cern.ch/{group/}/cc7-test]
bb0a2cef5136: Pushed
b4b009d318b0: Pushed
Loading