https://github.com/thenets/dev-container
A full-featured Fedora container image designed for development.
https://github.com/thenets/dev-container
Last synced: 7 months ago
JSON representation
A full-featured Fedora container image designed for development.
- Host: GitHub
- URL: https://github.com/thenets/dev-container
- Owner: thenets
- License: gpl-2.0
- Created: 2024-01-30T18:58:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T01:58:13.000Z (about 2 years ago)
- Last Synced: 2025-02-14T21:46:55.674Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/thenets/dev-container/actions/workflows/container-release-auto-patch.yml)
# TheNets : Dev Container
A full-featured Fedora container image designed for development.
---
Container images:
- [Quay.io](https://quay.io/repository/thenets/dev-container)
- `quay.io/thenets/dev-container:latest`
## 1. Use-cases
- Coder Workspace
- VS Code container (WIP)
## 2. Features
- Most build tools. Maybe suitable for pipelines too.
- Container-in-container supported scenarios:
- [ ] Rootless Podman in Rootless Podman
- [x] Rootful Podman in Rootful Docker, with `--privileged` flag
- [ ] Rootful Docker in Rootful Docker, with `--privileged` flag
- [x] Rootful Docker in Rootful Docker, with socket sharing
## 3. Usage per scenario
### 3.1. No inner container
Just run the container as usual.
```bash
# Example: Run htop
podman run -it --rm quay.io/thenets/dev-container:latest htop
```
### 3.2. Rootful Podman in rootful Docker, with `--privileged` flag
```bash
# Start a Docker container in privileged mode
docker run -it --rm --privileged quay.io/thenets/dev-container:latest
# (inside the container)
# Run a podman container
podman run -it --rm docker.io/alpine echo 'hello'
```
### 3.3. Rootful Docker in rootful Docker, with socket sharing
```bash
# Start a Docker container, mapping it's daemon socket
docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock:rw quay.io/thenets/dev-container:latest
# (inside the container)
# Run a docker container
docker run -it --rm docker.io/alpine echo 'hello'
```
## 4. References
Most of this work was create on top of the following blog post and git repo:
- https://www.redhat.com/sysadmin/podman-inside-container
- https://github.com/containers/podman/tree/main/contrib/podmanimage/stable