Skip to content

rdrgporto/docker-vagrant

Repository files navigation

Welcome to Docker Vagrant! 🐋

Introduction

This repository was created with the aim of testing Docker easily. Moreover, I have created a Wiki 📝 in order to practice with this great tool.

First Steps

  • Download Vagrant : Link
  • Download Virtualbox: Link

Up and SSH

Install Git

  • Linux 🐧

sudo apt -y install git --> Ubuntu/Debian
sudo yum -y install git --> CentOS/RedHat

git clone https://github.com/rdrgporto/docker-vagrant.git
  • Windows 🏁

    Download Git Bash and install it:

git clone https://github.com/rdrgporto/docker-vagrant.git

Run Vagrant 🚀

Vagrant is configured with two kinds of network, internal and public. You can use public network in order to login via any kind of SSH client (Putty, MobaXterm, Termius):

cd /home/rdrgporto/docker-vagrant/
vagrant up

If everything was fine, login via SSH:

vagrant ssh

Vagrant Commands

vagrant up        : start vm
vagrant destroy   : remove/delete vm
vagrant ssh       : connect to vm
vagrant halt      : shutdown vm
vagrant provision : relaunch Ansible