filmov
tv
Docker compose Building docker image running container
Показать описание
Building docker image and running container using docker-compose
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 visit these play lists as well
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 visit these play lists as well
Docker Compose vs Dockerfile - Dockerfile Explained - Docker Tutorial
Dockerfile >Docker Image > Docker Container | Beginners Hands-On | Step by Step
Learn Docker in 7 Easy Steps - Full Beginner's Tutorial
How to Update Docker Image and Container using docker-compose
Docker Compose will BLOW your MIND!! (a tutorial)
Learning Docker // Build Container Images
Ultimate Docker Compose Tutorial
Dockerfile Tutorial - Docker in Practice || Docker Tutorial 10
Como Fazer Setup do Postgres com Docker para Projetos Django
Customize Dev Containers in VS Code with Dockerfiles and Docker Compose
Docker Compose in 12 Minutes
What is Docker Compose | How to create docker compose file | How to use Compose
Docker Compose Tutorial
Differences Between Docker Compose and Dockerfile by Example
How to create a great dev environment with Docker
How to dockerize your Spring Boot API | Docker Tutorial
Top 8 Docker Best Practices for using Docker in Production
Docker Container Image Build ARG ENV - Video 26
How To Use Docker To Make Local Development A Breeze
Docker Crash Course #11 - Docker Compose
When would you want to use docker and docker-compose on your projects?
How to Create Docker Image for Java Application | How to Dockerize an application | Docker Container
Docker Compose | Build and start a Django project with Docker Compose & work in a Docker Contain...
Run Docker in Windows - Setup, Docker Compose, Extensions
Комментарии