Browse Source

chown home directory and add README

pull/2/head
Michel Roux 2 months ago
parent
commit
5455c19f23
  1. 33
      README.md
  2. 1
      wrapper.sh

33
README.md

@ -0,0 +1,33 @@
# code-server-dind
> VS Code in the browser with Docker !
[![Build Status](https://ci.crystalyx.net/api/badges/Xefir/code-server-dind/status.svg)](https://ci.crystalyx.net/Xefir/code-server-dind)
[![Docker Hub](https://img.shields.io/docker/pulls/xefir/code-server-dind)](https://hub.docker.com/r/xefir/code-server-dind)
## Requirements
Linux machine with WebSockets enabled, 1 GB RAM, and 2 CPUs
## Getting started
Run :
`docker run --privileged -p 8080:8080 -v $(pwd)/coder:/home/coder xefir/code-server-dind`
Or with docker-compose :
```
code-server-dind:
image: xefir/code-server-dind
privileged: true
ports:
- "8080:8080"
volumes:
- ./coder:/home/coder
```
## Note about security
To be able to use Docker in Docker, this container use an old trick from [docker-dind](https://github.com/jpetazzo/dind) and must be run as privileged mode.
This container is provided as is, use it at your own risks.

1
wrapper.sh

@ -1,3 +1,4 @@
#!/usr/bin/env bash
chown coder: .
/usr/bin/sudo -u coder /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:${PORT:-8080} --disable-telemetry .

Loading…
Cancel
Save