Skip to content
MightyDetail edited this page Feb 12, 2022 · 12 revisions

Installation

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

add your user to Docker usergroup

sudo usermod -aG docker USERNAME

if curl is no installed on you system

sudo apt update && sudo apt install curl

Docker-Compose

Download latest Docker Compose (latest at date writing this)

sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Apply permissions to execute:

sudo chmod +x /usr/local/bin/docker-compose

Create symbolic link:

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

1.27.4 was the latest version available at time writing this.

Check for latest Version at Docker Docs

Macvlan

docker network create -d macvlan --subnet=IPv4/24 --gateway=IPv4GatewayIP --subnet=IPv6::/64 --gateway=IPv6::1 -o parent=eth0  -o macvlan_mode=bridge NAME

Sample Docker Compose file

version: '3.3'

services:
    test:
      image: ...
      container_name: test
      restart: unless-stopped
      networks:
          NAME:
              ipv4_address: 10.2....
              ipv6_address: ::1

networks:
    NAME:
      external:
        name: NAME

Clone this wiki locally