Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 1.9 KB

Instalar docker compose.md

File metadata and controls

47 lines (40 loc) · 1.9 KB

Para instalar o docker-compose

Comandos do docker

docker ps -a                # Lists containers (and tells you which images they are spun from)

docker images               # Lists images 

docker rm <container_id>    # Removes a stopped container

docker rm -f <container_id> # Forces the removal of a running container (uses SIGKILL)

docker rmi <image_id>       # Removes an image 
                            # Will fail if there is a running instance of that image i.e. container

docker rmi -f <image_id>    # Forces removal of image even if it is referenced in multiple repositories, 
                            # i.e. same image id given multiple names/tags 
                            # Will still fail if there is a docker container referencing image

Subir docker com yml personalizado:

docker compose -f docker-compose-dev.yml up -d --force-recreate

Instalar o AWS CLI e autorizar usuário docker