Sign inSign up

paragk41086/sshlamp

By paragk41086

Updated about 8 years ago

docker Image with Ubunut 16.04, Apache, Mysql, PHP7

Image
0

124

paragk41086/sshlamp repository overview

Image is with Lamp stack and SSH server

Docker run -d -p 80:80 -p 443:443 -p 8000:8000 -p 8080:8080 -p 22:22 --name ubuntu16 paragk41086/sshlamp

SSH_user : root SSH_pass : password

mysql_secure_installation can be run default password : admin@123

Docker File to build image

FROM ubuntu:16.04 (Comment the lines with bold Letters)

Identify the maintainer of an image

MAINTAINER My Name "[email protected]"

Update the image to the latest packages

RUN apt-get update && apt-get install -y --no-install-recommends apt-utils RUN apt-get update && apt-get upgrade -y

Install & configure Open SSH Server

RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:password' | chpasswd RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/$

SSH login fix. Otherwise user is kicked off after login

RUN sed 's@session\srequired\spam_loginuid.so@session optional pam_loginuid.s$

ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile

EXPOSE 22

Install All services after creating image

Expose port 80, 443, 8000, 8080

EXPOSE 80 EXPOSE 443 EXPOSE 8000 EXPOSE 8080 EXPOSE 3306 EXPOSE 3308

Last is the actual command to start up NGINX within our Container

CMD ["/usr/sbin/sshd", "-D"]

Tag summary

Content type

Image

Digest

Size

183.6 MB

Last updated

about 8 years ago

docker pull paragk41086/sshlamp