This page (revision-52) was last changed on 23-Apr-2022 17:05 by Harry Metske

This page was created on 23-Apr-2022 17:05 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
52 23-Apr-2022 17:05 49 KB Harry Metske to previous
51 23-Apr-2022 17:05 48 KB HarryMetske to previous | to last
50 23-Apr-2022 17:05 48 KB HarryMetske to previous | to last
49 23-Apr-2022 17:05 48 KB Harry Metske to previous | to last
48 23-Apr-2022 17:05 48 KB Harry Metske to previous | to last
47 23-Apr-2022 17:05 48 KB Harry Metske to previous | to last
46 23-Apr-2022 17:05 39 KB Harry Metske to previous | to last
45 23-Apr-2022 17:05 39 KB Harry Metske to previous | to last
44 23-Apr-2022 17:05 39 KB Harry Metske to previous | to last
43 23-Apr-2022 17:05 38 KB Harry Metske to previous | to last
42 23-Apr-2022 17:05 38 KB Harry Metske to previous | to last DOCKER_OPTS="-s devicemapper"
41 23-Apr-2022 17:05 38 KB HarryMetske to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 56 added one line
!! run
At line 96 added 10 lines
!! run with port mapping
{{{
docker run -p 8080:80 -t -i dfda109aba4a /bin/bash
}}}
You can now access localhost:8080 on the host, this will be remapped to port 80 in the container.
!! history
At line 123 added 33 lines
!! build images
Create {{ /var/lib/docker/docker/dockerfiles/testje/Dockerfile}}, {{cd to /var/lib/docker/docker/dockerfiles}} and create testje/Dockerfile with content :
{{{
FROM nginx
MAINTAINER Harry Metske <harry.metske@gmail.com>
RUN date > /tmp/date.txt
RUN apt-get -y install vim
}}}
and run
{{{
root@athena:/var/lib/docker/dockerfiles# docker build testje
Sending build context to Docker daemon 2.56 kB
Sending build context to Docker daemon
Step 0 : FROM nginx
---> f1c42afeb4a4
Step 1 : MAINTAINER Harry Metske <harry.metske@gmail.com>
---> Using cache
---> 2db2a6377c41
Step 2 : RUN date > /tmp/date.txt
---> Using cache
---> d57d03dacc7f
Step 3 : RUN apt-get -y install vim
---> Using cache
---> e426018fc315
Successfully built e426018fc315
}}}
!! todo
* how do I bootstrap the container, for example start nginx on start of the container ?