This image is intended to be used for development web environment.
You can specify the following variables:
CS_PORT=<port> (port for Code Server)DEV_PORT=<port> (port exposed for dev)PASSWORD=<password> (password for login)GIT_USER_NAME=<user_name> (user name for git)GIT_USER_EMAIL=<user_name> (user email for git)Run:
$ docker run -d --name coder \
--restart always \
--network <network> \
-u `id -u`:`id -g` \
-p 9000:8080 \
-p 9001:9001 \
-e CS_PORT=8080 \
-e DEV_PORT=9001 \
-e PASSWORD=<password> \
-e GIT_USER_NAME="User Name" \
-e GIT_USER_EMAIL="[email protected]" \
-v /var/run/docker.sock:/var/run/docker.sock \
atrobertoflores/coder
Open a browser and see the demo at http://<server>:8080
Run Docker in Docker:
$ -v /var/run/docker.sock:/var/run/docker.sock \
Inside container install docker (as root): https://docs.docker.com/engine/install/ubuntu/
$ DOCKER_VERSION=20.10.0 \
&& curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
&& tar xzvf docker-${DOCKER_VERSION}.tgz --strip 1 \
-C /usr/local/bin docker/docker \
&& rm docker-${DOCKER_VERSION}.tgz
Test docker (as ubuntu):
$ sudo docker ps
Change ubuntu password:
$ passwd
Remove sudo usage without password:
$ sudo rm /etc/sudoers.d/ubuntu
This is possible by the hard work of code-server team https://github.com/cdr > https://github.com/cdr/code-server.
Content type
Image
Digest
Size
284.2 MB
Last updated
about 5 years ago
docker pull atrobertoflores/coder