Created
February 15, 2023 21:22
-
-
Save lmorillas/2a1c9f40680f8907f5e600f267064959 to your computer and use it in GitHub Desktop.
Secuencia clase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vamos a carpeta de proyecto donde está *Vagrantfile* | |
$ vagrant up | |
$ vagrant ssh | |
# dentro de la máquina virtualizada con vagrant | |
# movemos a carpeta mapeada | |
$ cd /vagrant | |
# levantamos contendores | |
$ docker-compose up -d | |
# ver estado | |
$ docker-compose ps | |
$ docker-compose logs | |
# ejecutar comando en contenedor | |
$ docker-compose exec wagtail python manage.py load_initial_data | |
# construir contenedor con Dockerfile | |
$ docker-compose build wagtail | |
# parar contedores | |
$ docker-compose stop | |
# fuera de la máquina vagrant | |
$ vagrant halt | |
# borrar la máquina virtual | |
$ vagrant destroy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment