FROM alpine
RUN sed -i 's/http://dl-cdn.alpinelinux.org/https://mirror.tuna.tsinghua.edu.cn/g' /etc/apk/repositories RUN apk update && apk add vim bash git openssh #RUN rm -rf /var/cache/apk/* RUN echo root:123456 | chpasswd RUN ssh-keygen -A RUN cd ~ && git clone -b mini https://github.com/582033/vim.git .vim && bash ~/.vim/install.sh && ln -sf ~/.vim/bashrc ~/.bashrc
EXPOSE 222 CMD ["sshd", "-D"]
docker run -it -p 222:22 --name='yjiang' yjiang/base bash
123456
Content type
Image
Digest
Size
21.7 MB
Last updated
almost 8 years ago
docker pull yjiang/base