---
title: Docker
description: 
published: true
date: 2019-10-08T12:32:14.263Z
tags: 
---

# Docker

## Commands

```Bash
docker ps
```

```Bash
docker-compose up -d
```
```Bash
docker-compose down
```

## Images

[Image Status](https://fleet.linuxserver.io/)

## Overview

[GitHub - veggiemonk/awesome-docker: A curated list of Docker resources and projects](https://github.com/veggiemonk/awesome-docker#raspberry-pi--arm)

## Building Images

[Use multi-stage builds \| Docker Documentation](https://docs.docker.com/develop/develop-images/multistage-build/)

```Dockerfile
FROM golang:1.7.3 AS builder
WORKDIR /go/src/github.com/alexellis/href-counter/
RUN go get -d -v golang.org/x/net/html  
COPY app.go    .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .

FROM alpine:latest  
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go/src/github.com/alexellis/href-counter/app .
CMD ["./app"]  
```

## Networking

[Networking in Compose \| Docker Documentation](https://docs.docker.com/compose/networking/)

[Use bridge networks \| Docker Documentation](https://docs.docker.com/network/bridge/)

[Docker Compose Bridge Networking – Linux Hint](https://linuxhint.com/docker_compose_bridge_networking/)