add compose with hostname
This commit is contained in:
parent
a45048cfa7
commit
67392f7e33
@ -4,6 +4,6 @@ RUN apt install tree less openssh-server wamerican accountsservice -y
|
|||||||
RUN useradd -rm -d /home/debian -s /bin/bash -g root -G sudo -u 1000 test
|
RUN useradd -rm -d /home/debian -s /bin/bash -g root -G sudo -u 1000 test
|
||||||
RUN service ssh start
|
RUN service ssh start
|
||||||
COPY ./enter-bash /home/debian
|
COPY ./enter-bash /home/debian
|
||||||
EXPOSE 22
|
|
||||||
RUN /home/debian/deploy.sh
|
RUN /home/debian/deploy.sh
|
||||||
|
EXPOSE 22
|
||||||
CMD ["/usr/sbin/sshd", "-D"]
|
CMD ["/usr/sbin/sshd", "-D"]
|
||||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
enter-bash:
|
||||||
|
image: dockerregistry.legaragenumerique.fr/enter-bash:1.0
|
||||||
|
hostname: enter-bash
|
||||||
|
container_name: enter-bash
|
||||||
|
ports:
|
||||||
|
- "4444:22"
|
||||||
|
restart: unless-stopped
|
||||||
Loading…
x
Reference in New Issue
Block a user