https://github.com/itzg/docker-ubuntu-remote-dev
https://github.com/itzg/docker-ubuntu-remote-dev
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/itzg/docker-ubuntu-remote-dev
- Owner: itzg
- Created: 2022-10-29T19:34:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-10T12:46:09.000Z (over 1 year ago)
- Last Synced: 2025-02-10T13:38:29.735Z (over 1 year ago)
- Language: Shell
- Size: 45.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hub.docker.com/r/itzg/ubuntu-remote-dev/)
[](https://github.com/itzg/docker-ubuntu-remote-dev/actions/workflows/ci.yml)
An Ubuntu based image that can be used with editors that support remote development over SSH.
Validated with:
- JetBrains Gateway
Includes:
- git
- JDK
## Usage
**Image name**: `itzg/ubuntu-remote-dev:20.04-17`
The image creates a user named `dev` with UID 1000, so assuming a local port binding of 2022 to the server's port, this can be used to connect to the container:
```shell
ssh -p 2022 dev@HOST
```
> Replace `HOST` with the actual host/IP of the container, such as "localhost"
### Environment variables
#### SSH_IMPORT_ID
**Required**: yes
User ID with protocol prefix supported by [ssh-import-id](https://manpages.ubuntu.com/manpages/focal/en/man1/ssh-import-id.1.html)
### Ports
#### 2022
SSH server
### Volumes
#### Workspace
**Mount point**: `/workspace`
Home directory of user `dev`
#### Pre-generated host keys
The volume `/host_keys` can be mounted and any files named `ssh_host_*_key` and `ssh_host_*_key.pub` will be used by SSHD.
#### Extra SSHD configs
The volume `/sshd/configs.d` can be mounted and any files named `*.conf` will be included into the SSHD configuration.
### Command line
Any additional arguments will be passed to the `sshd` server command-line