Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
docker:docker [2020/03/05 04:54] – [Dockerfile] tmadedocker:docker [2020/06/20 19:42] – [Commands] tmade
Line 65: Line 65:
   docker image ls   docker image ls
   docker images -q                                                                    #Just show "IMAGE ID"   docker images -q                                                                    #Just show "IMAGE ID"
 +  docker images --digests                                                             #show "sha" value to get version of e. g. "lastest"
   docker image ls --all   docker image ls --all
   docker pull mysql/mysql-server:latest                                               #Install image mysql   docker pull mysql/mysql-server:latest                                               #Install image mysql
Line 256: Line 257:
 FROM alpine:3.11 FROM alpine:3.11
  
-LABEL version="1.3"+LABEL version="1.4"
 LABEL maintainer="Thomas Roehm" LABEL maintainer="Thomas Roehm"
  
-ENV http_proxy "http://proxy:80" +#ENV http_proxy "http://proxy:80" 
-ENV https_proxy "https://proxy:80" +#ENV https_proxy "https://proxy:80" 
-ENV no_proxy="localhost,127.0.0.1,.local"+#ENV no_proxy="localhost,127.0.0.1,.local"
  
 #ARG VERSION #ARG VERSION
Line 304: Line 305:
 WORKDIR /etc/apache2 WORKDIR /etc/apache2
  
-#COPY server.key /etc/apache2/server.key +#USER apache
-#COPY server.crt /etc/apache2/server.crt +
- +
-#VOLUME /web+
  
 #EXPOSE 80 443 #EXPOSE 80 443
-#ENTRYPOINT ["/bin/sh", "-c", "/bin/bash"                                  #exec form+#ENTRYPOINT ["/bin/sh", "-c", "/bin/bash"                                 #exec form
 #ENTRYPOINT /bin/bash                                                       #shell form #ENTRYPOINT /bin/bash                                                       #shell form
 #ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"                   #exec form #ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"                   #exec form
Line 322: Line 320:
  
   docker build --no-cache -t alpine-apache2:3.11 .   docker build --no-cache -t alpine-apache2:3.11 .
-  docker run -d -p 8080:80 -p 8444:443 --hostname myhost.local --name=alpine-apache2-1 alpine-apache2:3.11 +  docker run -it -d -p 80:8080 -p 443:8443 --hostname myhost.local --name=alpine-apache2-1 alpine-apache2:3.11 
-  docker run -d -p 80:80 -p 443:443 --hostname myhost.local --name=alpine-apache2-1 alpine-apache2:3.11+  docker run -it -d -p 80:80 -p 443:443 --hostname myhost.local --name=alpine-apache2-1 alpine-apache2:3.11
   docker container ls -a | grep alpine   docker container ls -a | grep alpine
   docker exec -ti PROCESS-ID /bin/bash   docker exec -ti PROCESS-ID /bin/bash
docker/docker.txt · Last modified: 2024/01/10 16:08 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki