Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

A full-featured Fedora container image designed for development.

License

Notifications You must be signed in to change notification settings

thenets/dev-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Container release auto patch

TheNets : Dev Container

A full-featured Fedora container image designed for development.


Container images:

  • Quay.io
    • 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
    • Rootful Podman in Rootful Docker, with --privileged flag
    • Rootful Docker in Rootful Docker, with --privileged flag
    • Rootful Docker in Rootful Docker, with socket sharing

3. Usage per scenario

3.1. No inner container

Just run the container as usual.

# Example: Run htop
podman run -it --rm quay.io/thenets/dev-container:latest htop

3.2. Rootful Podman in rootful Docker, with --privileged flag

# 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

# 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:

About

A full-featured Fedora container image designed for development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published