Skip to content

Instantly share code, notes, and snippets.

View roxsross's full-sized avatar
🔥
Onfire

Rossana Suarez roxsross

🔥
Onfire
View GitHub Profile
@roxsross
roxsross / vagrant-cheat-sheet.md
Created January 28, 2023 17:02 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@roxsross
roxsross / docker-help.md
Created October 11, 2022 17:04 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@roxsross
roxsross / docker_container_image_remove.md
Created April 4, 2022 19:21 — forked from mrroot5/docker_container_image_remove.md
Borrar contenedores e imágenes de docker. También <none>. Keyords: prune, docker, images, docker images, docker prune, stop, docker stop, docker ps, ps.

Intro

En este fichero vas a aprender algunos comandos básicos para parar y eliminar contenedores además de imágenes de docker.

Contenedores

Parar todos los contenedores

docker stop $(docker ps -a -q)