docker simple file err centos 7 (basic easy) (5 stars)

Job ID: 34940593

Budget: $2 – $8 USD

$ docker-compose build
[+] Building 1.2s (7/11)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 475B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/centos:latest 0.7s
=> [auth] library/centos:pull token for registry-1.docker.io 0.0s
=> CACHED [1/6] FROM docker.io/library/centos@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 36B 0.0s
=> ERROR [2/6] RUN yum -y install openssh-server 0.5s
------
> [2/6] RUN yum -y install openssh-server:
#0 0.430 CentOS Linux 8 - AppStream 246 B/s | 38 B 00:00
#0 0.432 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
------
failed to solve: executor failed running [/bin/sh -c yum -y install openssh-server]: exit code: 1
$

NeXT-2020:scratch ej$ cat centos7/Dockerfile
FROM centos

RUN yum -y install openssh-server

RUN useradd remote_user && \
echo "1234" | passwd remote_user --stdin && \
mkdir /home/remote_user/.ssh && \
chmod 700 /home/remote_user/.ssh

COPY remote-key.pub /home/remote_user/.ssh/authorized_keys

RUN chwon remote_user:remote_user -R /home/remote_user/.ssh && \
chmod 600 /home/remote_user/.ssh/authorized_keys

RUN /usr/sbin/sshd-keygen

CMD /usr/sbin/sshd -D

this is on my desktop and can share easy if you like?

Please be one to help me get it and let us do 5 stars?

If so great; there is a 2nd project and milestone if you get this done?

Let me know your thoughts and any questions

While this is hourly; there is a max of $15 that I can pay, as being a cancer patient is tuff and been out of work. Hourly will give you more $ as there is less money taken between us from freelancer -

There is hope you can give your “best” price; unemployed, and have cancer with bills backing up, $15 possible? Glowing paragraph of feedback 5 stars

My funds are low but will pay quick and leave 5 stars. Please note there is hope we can mutually complete this task; we can leave each other nice comments and 5 stars for each? Look at feedback on my profile, feedback

SINCERELY WOULD BE NICE TO MEET YOU PLEASE

Please note project is due in two hours as this projects deadline
Related categories: Cloud Computing Docker Scripting Jenkins DevOps