Apuntes para Docker

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Build 
$ docker-compose build

# Run containers in detached mode
$ docker-compose up -d

# Stop containers
$ docker-compose stop

# Bash commands
$ docker-compose exec <container_id> bash

# Check CPU consumption
$ docker stats $(docker inspect -f "{{ .Name }}" $(docker ps -q))

# Delete all containers
$ docker rm $(docker ps -aq)

# Delete all images
$ docker rmi $(docker images -q)
Compartir Comentarios