Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebastiandotdev/docker-lang
Develop faster. Run anywhere. The most-used Tool in Stack Overflow’s 2023 Developer Survey
https://github.com/sebastiandotdev/docker-lang
Last synced: 25 days ago
JSON representation
Develop faster. Run anywhere. The most-used Tool in Stack Overflow’s 2023 Developer Survey
- Host: GitHub
- URL: https://github.com/sebastiandotdev/docker-lang
- Owner: sebastiandotdev
- License: mit
- Created: 2023-07-16T15:41:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-18T03:14:42.000Z (over 1 year ago)
- Last Synced: 2024-08-26T18:53:52.295Z (2 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker
Develop faster. Run anywhere. The most-used Tool in Stack Overflow’s 2023 Developer Survey
## commando Docker images
1. **Docker images** mostrará todas las imagenes que tengo en mi maquina
```sh
docker images
```2. **Docker pull** Descarga una imagen
```sh
docker pull
```3. **Docker image rm ** Elimina una imagen
```sh
docker image rm node:18
```## commando Docker contenedores
1. **Docker create ** Crea un contenedor basado en una imagen existente
```sh
docker create mongo
exit: id-container
```2. **Docker start: id-container** Para ejecutar el contenedor ya existente
```sh
docker start id
```
3. **Docker ps** Me devuelve los contenedores que tengo ejecutando```sh
docker ps
```4. **Docker stop id-container** Detiene el contenedor
```sh
docker stop id-container
```
5. **Docker rm name-container** Elimina el contenedor mediante su imagen
```sh
docker rm name-container
```
6. **Docker create --name name-container base-image** cambiar nombre del contenedor
```sh
docker create --name name-container base-image
```
### Port mapping
7. **Docker create -p27017:27017**
8. **Docker logs** mensaje por la terminal de su imagen
```sh
docker logs
```## REDES
1. **docker network ls** Listar las redes
```sh
docker network ls
```2. **docker network create name-red** Crear redes
```sh
docker network create name-red
```3. **Docker network rm name-red** elimina una red
```sh
docker network rm name-red
```