This docker image is used by me as working environment to do development
You can use below command to launch the container:
# docker run --privileged --rm -it -d -p <SSH port in host system>:22 -v <Host path to be mounted>:/myhome --name my_centos johnklee/centos_ws:r1 /usr/sbin/init
Or for the tag latest, you can use below command:
# docker run --privileged --rm -it -d -p <SSH port in host system>:22 -v <Host path to be mounted>:/myhome --name my_centos johnklee/centos_ws
For latest version docker image, we have installed below packages:
# git version
git version 2.18.4
# python --version
Python 3.7.3
# go version
go version go1.13.4 linux/amd64
Sample dockerfile below for future reference:
FROM johnklee/centos_ws:r1
USER root
RUN yum update -y
WORKDIR /root
CMD [ "/usr/sbin/init" ]
So we can build the docker image:
# docker build -t johnklee/centos_ws:latest .
# docker images
Content type
Image
Digest
Size
1.2 GB
Last updated
about 6 years ago
docker pull johnklee/centos_ws