{"id":24385709,"url":"https://github.com/cmulk/ubuntu-systemd-devimage","last_synced_at":"2025-07-07T05:40:31.129Z","repository":{"id":209238747,"uuid":"353689123","full_name":"cmulk/ubuntu-systemd-devimage","owner":"cmulk","description":"Docker image based on ubuntu:rolling with systemd and docker installed. Meant to replace a code dev VM","archived":false,"fork":false,"pushed_at":"2021-04-06T12:36:19.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T11:33:18.320Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmulk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-01T12:15:54.000Z","updated_at":"2022-02-11T01:57:36.000Z","dependencies_parsed_at":"2023-11-26T03:28:03.368Z","dependency_job_id":null,"html_url":"https://github.com/cmulk/ubuntu-systemd-devimage","commit_stats":null,"previous_names":["cmulk/ubuntu-systemd-devimage"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmulk%2Fubuntu-systemd-devimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmulk%2Fubuntu-systemd-devimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmulk%2Fubuntu-systemd-devimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmulk%2Fubuntu-systemd-devimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmulk","download_url":"https://codeload.github.com/cmulk/ubuntu-systemd-devimage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243276946,"owners_count":20265346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-19T11:29:04.072Z","updated_at":"2025-03-12T18:43:34.835Z","avatar_url":"https://github.com/cmulk.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ubuntu Development Image with Systemd and Docker\n\nThe purpose of this image is to have almost the full capability of a development VM inside of a Docker container. The image is based on `ubuntu:rolling` with systemd (modeled after [jrei/systemd-ubuntu](https://hub.docker.com/r/jrei/systemd-ubuntu)), docker, and sshd installed.\n\nSince the image is running both systemd and docker, `--privileged` is required as well as bind mounting the host's cgroup: `/sys/fs/cgroup:/sys/fs/cgroup:ro`.\nDocker's overlayfs or aufs filesystems do not work inside of a container, so you also must mount your `/var/lib/docker` directory to a volume or bind mount to the host.\n\nThe image includes a default user, `user:ruse`.\n\nI recommend using ssh by exposing the docker port on localhost only (as shown below) so the container is not exposed to the whole network. Then you can use ssh proxy through the host machine if you need to connect to it remotely.\n\n## Docker-Compose\n\n```\nversion: \"3\"\nservices:\n  dev:\n    image: cmulk/ubuntu-systemd-devimage:latest\n    container_name: ubuntu-dev\n    hostname: dev\n    privileged: true\n    ports:\n      - \"127.0.0.1:2222:22\" # ssh\n    volumes:\n      - .:/host # whichever directory contains the code you are working on\n      - /sys/fs/cgroup:/sys/fs/cgroup:ro\n      - /tmp/dockerlib:/var/lib/docker\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmulk%2Fubuntu-systemd-devimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmulk%2Fubuntu-systemd-devimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmulk%2Fubuntu-systemd-devimage/lists"}