Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabrizziob/dockerfiles

Docker containers for newbies
https://github.com/fabrizziob/dockerfiles

cloud devops docker docker-compse services

Last synced: about 1 month ago
JSON representation

Docker containers for newbies

Awesome Lists containing this project

README

        

# Dockerfiles

This repository is to aid the learning of Docker containers.
Provides commands, tips and hints, Dockerfiles and docker-compose files.

Enjoy!

***

## Commands

- To check for all containers
```bash
docker ps
```

- To check for all containers alive
```bash
docker ps -a
```

- To remove a docker image(s)
```bash
docker rmi
```

- To build an image
```bash
docker build -t .
```

- Check the images created
```bash
docker images
```

- Execute the container you just created the image of
```bash
docker run -d --name -e -p
```

- To see the logs of a container
```bash
docker logs
```

### Run the containers
---

Run container postgresql:
```bash
docker run -d --name postgres_container -e POSTGRES_PASSWORD=mypassword -p 5433:5432 postgresql_container
```