Last active
October 29, 2020 14:27
-
-
Save javigomez/353b7078f65774ef8f9e2bcff193cd3f to your computer and use it in GitHub Desktop.
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
# IMAGENES | |
docker image ls | |
# PARAR CONTAINERs | |
docker-compose down | |
docker stop $(docker ps -q) | |
docker kill -f CONTAINER_ID | |
# LIMPIAR IMAGENES Y CONTENEDORES ANTIGUOS | |
docker system prune | |
docker volume prune | |
# ENTRAR EN CONTAINER | |
docker build -t toltec_test_1 . | |
docker exec -it toltec_test_1 bash | |
# RECREAR TODOS LOS CONTAINERS | |
docker-compose up --build --abort-on-container-exit | |
# RECREAR SOLO UNO DE LOS CONTAINERS | |
docker-compose up -d --no-deps --build <service_name> | |
# PASAR PARAMETROS A UN DOCKER | |
docker run \ | |
-e MY_ENV_VAR=$MIVAR \ | |
-e \ | |
# RUN INTERACTIVE CONTAINER | |
docker run -it quay.io/typeform/standards-adoption-tool:dev sh | |
# LOGS OF AN ALREADY EXITED CONTAINER | |
docker ps -a | |
docker logs -t ID_EXITED_CONTAINER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment