Skip to content

Instantly share code, notes, and snippets.

@javigomez
Last active October 29, 2020 14:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javigomez/353b7078f65774ef8f9e2bcff193cd3f to your computer and use it in GitHub Desktop.
Save javigomez/353b7078f65774ef8f9e2bcff193cd3f to your computer and use it in GitHub Desktop.
# 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