Direct connection to a docker container with SSH | by Łukasz Pawłowski | codeburst

PHOTO EMBED

Wed Oct 06 2021 01:56:07 GMT+0000 (Coordinated Universal Time)

Saved by @gitround

# We’ll use php:7.3-apache image. It does not have an ssh server installed, so we need to add it. We create Dockerfile:
FROM php:7.3-apache
RUN apt-get -y update && \
    apt-get -y — no-install-recommends install — fix-missing openssh-server && \
    rm -rf /var/lib/apt/lists/*
content_copyCOPY

https://codeburst.io/direct-connection-to-a-docker-container-with-ssh-56e1d2744ee5