Building docker image and running container using docker-compose
docker-compose.yml
version: '3'
services:
ubuntuwebserver:
build: ../apache2docker/
image: "dockcompose/apache2:1.0"
container_name: dockercomposeapache2
ports:
"3308:80"
Dockerfile
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y openssh-server
RUN mkdir -p /var/run/sshd
RUN mkdir -p /home/dockertest
RUN useradd -d /home/dockertest dockertest
RUN chown dockertest /home/dockertest
RUN echo 'dockertest:P@$$w0rd' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
EXPOSE 22
CMD ["/usr/sbin/sshd" , "-D"]
Subscribe this channel to get periodic update
Please click this link to subscribe my channel - https://www.youtube.com/c/hadoopengin...
Please visit these play lists as well
Docker Fundamentals - • What is Docker and Containers
Linux Basics - • Introduction - Linux Basics For Hadoop Adm...
Linux Tips and Tricks - • Setup Linux Virtual Machine in Your Deskto...
Cloudera Hadoop Administration - • Introduction to Cloudera Hadoop Administra...
Cloudera Hadoop 6 - • Cloudera Hadoop-6 Provisioning VM in Micos...
Bash Scripting - • 001-Unix Bash Shell scripting introduction
Hortonworks Data Platform3 - • HDP3.0.0 Installation Using Ambari 2.7.0.0
Hadoop Admin Q&A - • Hadoop Administration Q&A sessions
Hadoop Security - • Installation configuration of Apache Ranger
HD Insight - • HDInsight cluster installation on Microsof...
HDP Administration - • HDP Cluster Installation using Ambari - Pa...
HDPCA - • HDPCA Introduction
Cloudera Certified Administrator - • CCA131 Introduction Cloudera Certified Adm...
HDP Upgrade - • Part1 - HDP Installation
Puppet - • Part1 - Puppet installation
Data Governance - • Installation & Configuration of Apache ATL...
On this page of the site you can watch the video online Docker compose Building docker image running container with a duration of hours minute second in good quality, which was uploaded by the user NextGen Learning 23 June 2019, share the link with friends and acquaintances, this video has already been watched 14,321 times on youtube and it was liked by 76 viewers. Enjoy your viewing!