Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fabrizziob/dockerfiles
- Owner: FabrizzioB
- Created: 2024-09-23T01:05:21.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T19:18:42.000Z (about 2 months ago)
- Last Synced: 2024-10-28T21:28:19.890Z (about 2 months ago)
- Topics: cloud, devops, docker, docker-compse, services
- Language: Dockerfile
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```