{"id":16021197,"url":"https://github.com/cirocosta/docker-ubuntu","last_synced_at":"2026-04-13T02:02:03.501Z","repository":{"id":73883765,"uuid":"110432032","full_name":"cirocosta/docker-ubuntu","owner":"cirocosta","description":"Ubuntu-based docker image with base minimum systemd and SSH","archived":false,"fork":false,"pushed_at":"2017-11-22T12:19:58.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T11:51:15.091Z","etag":null,"topics":["docker","linux","systemd","ubuntu"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/cirocosta.png","metadata":{"files":{"readme":"README.txt","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-12T12:47:19.000Z","updated_at":"2021-05-02T09:30:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddf46490-264e-4244-93e7-d5d47a1e88fc","html_url":"https://github.com/cirocosta/docker-ubuntu","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"0b3b244bf93e39e2faf432b928ff3cd7d35a9e3e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fdocker-ubuntu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fdocker-ubuntu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fdocker-ubuntu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fdocker-ubuntu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cirocosta","download_url":"https://codeload.github.com/cirocosta/docker-ubuntu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247284914,"owners_count":20913691,"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":["docker","linux","systemd","ubuntu"],"created_at":"2024-10-08T18:02:03.604Z","updated_at":"2026-04-13T02:02:03.413Z","avatar_url":"https://github.com/cirocosta.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-ubuntu - a mini-ubuntu that has systemd with SSH configured.\n\nWhy?\n\n  The official `library/ubuntu` image does not contain SSHD running\n  by default as well as systemd. Thus, this images replicates a little \n  better the environment of an ubuntu machine. The tradeoff is that\n  it requires more privileges and volume mounting the cgroup virtual\n  filesystem.\n\nUsage:\n\n  1.  Default password\n    \n      The easiest way to get `cirocosta/ubuntu` running is using\n      the default password for the `ubuntu` or `root` user.\n\n          docker run \\\n            --privileged \\\n            --security-opt seccomp=unconfined \\\n            --tmpfs /run \\\n            --tmpfs /run/lock \\\n            --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \\\n            --detach \\\n            --publish 2222:22 \\\n            cirocosta/ubuntu\n          \n          ssh root@localhost -p 2222\n          Password: root\n\n          ssh ubuntu@localhost -p 2222\n          Password: ubuntu\n\n  2.  Public and Private keys\n    \n      As the image represents a mini version of ubuntu and runs\n      a normal sshd process you can mount your public key into\n      /root/.ssh/authorized_keys and use your own private key.\n\n          ssh-keygen -t rsa -b 4096 -C \"test@test.com\" -f ./key.rsa -P \"\"\n\n            Generating public/private rsa key pair.\n            Your identification has been saved in ./key.rsa.\n            Your public key has been saved in ./key.rsa.pub.\n            ...\n\n          tree ./ \n            .\n            ├── key.rsa\n            └── key.rsa.pub\n\n          chmod 400 ./key.rsa\n\n          docker run \\\n            --privileged \\\n            --security-opt seccomp=unconfined \\\n            --tmpfs /run \\\n            --tmpfs /run/lock \\\n            --volume /sys/fs/cgroup:/sys/fs/cgroup:ro \\\n            --volume `pwd`/mykeys/key.rsa.pub:/root/.ssh/authorized_keys:ro \\\n            --detach \\\n            --publish 2222:22 \\\n            cirocosta/ubuntu\n          \n          ssh -i ./key.rsa root@localhost -p 2222\n\n          ps.:  when you volume mount the file `key.rsa.pub` you might \n                have problems due to permissions (you'll mount the file\n                having the permissions from the user that created the \n                file). Make sure you adjust the permissions or, if you're\n                mounting for root, that you create the key file as root.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirocosta%2Fdocker-ubuntu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirocosta%2Fdocker-ubuntu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirocosta%2Fdocker-ubuntu/lists"}