{"id":23483839,"url":"https://github.com/bo-yuan-huang/docker-ubuntu-dev","last_synced_at":"2026-05-01T19:33:49.605Z","repository":{"id":80397947,"uuid":"101373867","full_name":"Bo-Yuan-Huang/Docker-Ubuntu-Dev","owner":"Bo-Yuan-Huang","description":"Set up a clean container for Linux using Docker","archived":false,"fork":false,"pushed_at":"2020-07-11T03:27:05.000Z","size":1306,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T09:20:25.411Z","etag":null,"topics":["development","docker","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bo-Yuan-Huang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-25T06:36:58.000Z","updated_at":"2020-07-11T03:27:08.000Z","dependencies_parsed_at":"2023-06-07T03:15:16.849Z","dependency_job_id":null,"html_url":"https://github.com/Bo-Yuan-Huang/Docker-Ubuntu-Dev","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bo-Yuan-Huang%2FDocker-Ubuntu-Dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bo-Yuan-Huang%2FDocker-Ubuntu-Dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bo-Yuan-Huang%2FDocker-Ubuntu-Dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bo-Yuan-Huang%2FDocker-Ubuntu-Dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bo-Yuan-Huang","download_url":"https://codeload.github.com/Bo-Yuan-Huang/Docker-Ubuntu-Dev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248799984,"owners_count":21163404,"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":["development","docker","ubuntu"],"created_at":"2024-12-24T21:16:21.218Z","updated_at":"2026-05-01T19:33:44.576Z","avatar_url":"https://github.com/Bo-Yuan-Huang.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/Bo-Yuan-Huang/Docker-Ubuntu-Dev.svg?branch=master)](https://travis-ci.org/Bo-Yuan-Huang/Docker-Ubuntu-Dev)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4f015e7197484cef87c6b2718440dd11)](https://app.codacy.com/app/Bo-Yuan-Huang/Docker-VM?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=Bo-Yuan-Huang/Docker-VM\u0026utm_campaign=Badge_Grade_Dashboard)\n\n## About\n\nThis repo demonstrates the use of Docker to efficiently create, run, and deploy a Linux (Ubuntu Bionic) image with several basic build packages.\nIt also provides scripts to build customized Docker image for personal configuration, e.g., vim, bash, git, etc. \n\n### Get the Ubuntu Bionic image with development packages installed\n\nA pre-built image with packages listed in [Dockerfile](base/Dockerfile) is available in Docker host\n\n``` bash\ndocker pull byhuang/ubuntu-dev:base\n```\n\nTo create a customized image, modify ``base/Dockerfile`` and build \n\n``` bash\ncd base\ndocker build -t my-image .\n```\n\n### Initiate a container\n\nNow you can run a container based on the newly fetched/created image.\n\n``` bash\ndocker run -it my-image\n```\n\nTo create a volume (shared storage) and mount to the container.\n\n``` bash\ndocker volume build my-data\ndocker run -it \\                                # interactive pseudo TTY\n           -v my-data:/path/to/dir \\            # mount the volume (shared storage)\n           --name cont-name \\                   # specify container name\n           --cap-add=SYS_PTRACE \\               # enable debugger\n           --security-opt seccomp=unconfined \\  # enable debugger\n           --privileged \\                       # enable docker in docker\n           my-image                             # image\n```\n\nBy default, Ubuntu Docker image does not have packages required for user log-in installed. \nYou can enable such features by running ``unminimize`` before logging in as a user.\nTo leave the container running in background by pressing the hot keys\n\n``` bash\nunminimize                                      # required user input\nadduser username                                # required user input\nadduser username sudo                           # required user input\n\u003cC-p\u003e \u003cC-q\u003e\n```\n\n### Personal use example\n\nAn example of automating personalization can be found in [user](user).\nIt shows how to create an user account (with sudo) and set up personal preferred environment.\nTo install customized bash prompt based on [bash_it](https://github.com/Bash-it/bash-it).\n\n``` bash\n# root\npasswd byhuang                                  # set pass word\n\n# log-in as user\n.themes/install.sh                              # initiate bash config\n```\n\n### Notes\nIf you have duplicated hosts (IP being used before)\n\n``` bash\nssh-keygen -R \u003chost\u003e                            # if duplicated hosts\n```\n\nIf you want to reconfigure your time zone\n\n``` bash\nsudo dpkg-reconfigure tzdata                    # reconfigure time zone if desired\n```\n\nIf you want to grant access to files in the volume\n\n``` bash\nsudo chmod -R a+rwx /path/to/files              # add all permissions to files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbo-yuan-huang%2Fdocker-ubuntu-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbo-yuan-huang%2Fdocker-ubuntu-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbo-yuan-huang%2Fdocker-ubuntu-dev/lists"}