Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/makiraid/docker-compose-collection

Awesome List of Docker Compose Collection
https://github.com/makiraid/docker-compose-collection

List: docker-compose-collection

awesome-list docker docker-compose hacktoberfest hacktoberfest2022

Last synced: about 1 month ago
JSON representation

Awesome List of Docker Compose Collection

Awesome Lists containing this project

README

        

# Docker

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package.

## Getting Started

These instructions will cover usage information and for the docker container

### Prerequisities

In order to run this container you'll need docker installed.

* [Windows](https://docs.docker.com/windows/started)
* [OS X](https://docs.docker.com/mac/started/)
* [Linux](https://docs.docker.com/linux/started/)

### Usage

#### Docker Images

List all images

```shell
docker images
```

Delete images

```shell
docker rmi [IMAGE ID]
```

#### Docker Container

List all container

```shell
docker ps -a
```

Start docker container

```shell
docker start [options] container_id
```

You can specify the container by either using its name or ID (long or short).
To create a new container from an image and start it, use docker run:

```shell
docker run [options] image [command] [argument]

```

## Docker Compose

Compose is a tool for defining and running multi-container Docker applications.
With Compose, you use a Compose file to configure your application's services.
Then, using a single command, you create and start all the services
from your configuration. To learn more about all the features of Compose
see [the list of features](https://github.com/docker/docker.github.io/blob/master/compose/index.md#features).

Using Compose is basically a three-step process.

1. Define your app's environment with a `Dockerfile` so it can be
reproduced anywhere.
2. Define the services that make up your app in `docker-compose.yml` so
they can be run together in an isolated environment.
3. Lastly, run `docker-compose up` and Compose will start and run your entire app.

`docker-compose.yml` looks like this:

version: '3'

services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code

## Contributing

Pull requests are welcome.

See the [guidelines](CONTRIBUTING.md) for contributing to this project.