dfwfalo.blogg.se

Install docker on rhel 7
Install docker on rhel 7






install docker on rhel 7

publish, -p Publish a container’s port(s) to the host network Connect a container to a network add-host Add a custom host-to-IP mapping (host:ip) (add to /etc/hosts) interactive, -i Keep STDIN open even if not attached detach, -d Run container in background and print container ID bash docker run -i -d -t -v /data/uat/webapps:/usr/local/tomcat/webapps -network=my_bridge_network -p 8080:8080 -name=tomcat -add-host=:10.1.10.182 \-add-host=webdb12cuat:10.1.96.142 rhel_tomcat Definition of the options:.docker network list NETWORK ID NAME DRIVER SCOPEĨaad24fc4399 my_bridge_network bridge local.docker network create -driver bridge my_bridge_network.It is recommended to use user-defined bridge networks to control which containers can communicate with each other, and also to enable automatic DNS resolution of container names to IP addresses. rhel latest db7a70a0414e 5 weeks ago 195.9 MB rhel7/rhel latest db7a70a0414e 5 weeks ago 195.9 MB Rhel_httpd latest 101b0144da85 5 hours ago 523 MB docker tomcat-project]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE.RUN tar xvf apache-tomcat-8.5.23.tar.gz -C $ -strip-components=1īuild Apache HTTPD and Tomcat container images # The USER instruction sets the user name (or UID) and optionally the user group (or GID) to use when running the image and for any RUN, CMD and ENTRYPOINT instructions that follow it in the Dockerfile.

install docker on rhel 7

# Pull the rhel image from the local registry # If you loaded redhat-rhel-server-7.0-x86_64 to your local registry, uncomment this FROM line instead: Dockerfile for Tomcat Dockerfile # My cool Docker image








Install docker on rhel 7