|
Show all images |
|
Download a image |
docker pull <image name>:<version>
|
Download a specific version |
docker create <image name>
|
It creates an container using image, then it returns the container Id |
docker create --name <custom name> <referential image>
|
Create a container with custom name |
docker create -p<myPort>:<DockerPort> <customName> <referential Image>
|
Create a container mapping a port from local to docker |
docker start <containerId>
|
Runs the container |
|
Returns the running container |
|
Return all container even the ones that aren't running. |
docker logs <container name>
|
It shows all logs form the container |
docker logs --follow <container name>
|
It keeps track of every log, so it's no required to refresh |
docker run <image_name>
|
1. It finds an image, if doesn't found it it downloads it. 2.It creates a container. 3. It runs the container redirecting to logs console. |
docker run -d <image_name>
|
The same as previous but without redirecting to logs. |
docker run --name <container_name> -p <localPort>:<dockerPort> -d <ImageName>
|
The same as previous but additionally creates a custom name |
|
It lists all networks in docker |
docker network create <network_name>
|
Creates a new network |
docker build -t <image_name>:<verison>
|
It creates an image from a docker file |
docker create -p<localPort>:<dockerport> -name <container_name> --network <network_name> <image reference>
|
It creates a container into a network |
|
Crea imagenes apartir de un archivo .yml |
|
Elimina |