{"id":17312890,"url":"https://github.com/9seconds/docker-vagrant","last_synced_at":"2025-04-13T09:52:10.664Z","repository":{"id":28006868,"uuid":"31501356","full_name":"9seconds/docker-vagrant","owner":"9seconds","description":"Dockerfiles for baseimage suitable for Vagrant","archived":false,"fork":false,"pushed_at":"2015-03-02T12:58:49.000Z","size":164,"stargazers_count":10,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:16:19.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://registry.hub.docker.com/u/nineseconds/vagrant-ubuntu/","language":"Makefile","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/9seconds.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}},"created_at":"2015-03-01T15:55:02.000Z","updated_at":"2023-04-13T09:55:56.000Z","dependencies_parsed_at":"2022-09-02T09:27:18.644Z","dependency_job_id":null,"html_url":"https://github.com/9seconds/docker-vagrant","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/9seconds%2Fdocker-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2Fdocker-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2Fdocker-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9seconds%2Fdocker-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9seconds","download_url":"https://codeload.github.com/9seconds/docker-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695301,"owners_count":21146952,"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":"2024-10-15T12:44:56.664Z","updated_at":"2025-04-13T09:52:10.637Z","avatar_url":"https://github.com/9seconds.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-vagrant\n\nDocker containers tuned to run by Vagrant without a big amount of buzz.\n\nVagrant knows how to run Docker images but unfortunately it is not pretty\nconvenient to follow the general line. I like to have `vagrant ssh` but\nmost containers do not provide it out of box. Moreover, it is a bit tricky\nto use it as a lightweight VM. Docker has its own way and I appreciate it.\n\nBut I want to have fast VMs because specific of my work is running of 3-5\nVirtualBox VMs on my laptop and overall experience is rather horrible. I have\nenough RAM but it is still painful sometimes. Some of my work requires\nfrequent restarts of VMs and this is a case where Docker shines.\n\nSo I prepared base images (on Ubuntu, CentOS is coming) I could use to setup\nmy Vagrant docker environments without a big pain.\n\n## Installation\n\nBasically you may fetch these VMs from Docker Hub:\n\n```shell\n$ docker pull nineseconds/docker-vagrant\n```\n\nOr if you want, you may build them manually with `Makefile` (just run `make`\nand get the same images as I have).\n\n## Usage\n\nUsage is straighforward: please check `Vagrantfile` in the repository. Minimal\n`Vagrantfile` is following:\n\n```ruby\n# -*- mode: ruby -*-\n# vi: set ft=ruby :\n\nVagrant.configure(2) do |config|\n  # Vagrant uses vagrant user by default. Docker uses root. Use root, it is\n  # a development environment anyway.\n  config.ssh.username = \"root\"\n\n  config.vm.provider \"docker\" do |docker|\n      # The name of the image to use\n      docker.image = \"nineseconds/docker-vagrant\"\n\n      # vagrant docker images have SSH so why not to use it\n      docker.has_ssh = true\n\n      # Yes, containers are long running.\n      docker.remains_running = true\n  end\nend\n```\n\nLet's check how it works...\n\n```shell\n$ vagrant up\nBringing machine 'default' up with 'docker' provider...\n==\u003e default: Fixed port collision for 22 =\u003e 2222. Now on port 2202.\n==\u003e default: Creating the container...\n    default:   Name: docker-vagrant_default_1425296109\n    default:  Image: nineseconds/vagrant-ubuntu\n    default: Volume: /home/sergey/dev/pvt/docker-vagrant:/vagrant\n    default:   Port: 127.0.0.1:2202:22\n    default:\n    default: Container created: d15b14122ebcedc8\n==\u003e default: Starting container...\n==\u003e default: Waiting for machine to boot. This may take a few minutes...\n    default: SSH address: 172.17.0.58:22\n    default: SSH username: root\n    default: SSH auth method: private key\n    default:\n    default: Vagrant insecure key detected. Vagrant will automatically replace\n    default: this with a newly generated keypair for better security.\n    default:\n    default: Inserting generated public key within guest...\n    default: Removing insecure key from the guest if its present...\n    default: Key inserted! Disconnecting and reconnecting using new SSH key...\n==\u003e default: Machine booted and ready!\n$ vagrant ssh\nroot@d15b14122ebc:~#\n```\n\nWorks like a charm.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9seconds%2Fdocker-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9seconds%2Fdocker-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9seconds%2Fdocker-vagrant/lists"}