https://docs.docker.com/engine/install/ubuntu/
curl -sSL https://get.docker.com/ | CHANNEL=stable bash
systemctl enable --now docker
To run docker command without sudo
, you need to add your user (who has root privileges) to docker group. For this run following command:
sudo usermod -aG docker $USER
See install above. Will install docker compose: new command line docker compose
OLD!: https://docs.docker.com/compose/install/#install-compose-on-linux-systems
docker -h
List all Docker Container
docker ps -a
To run docker command without sudo
, you need to add your user (who has root privileges) to docker group. For this run following command:
sudo usermod -aG docker $USER
sudo docker-compose up
-d = detached mode (ohne Console output)
--build = rebuild containers
sudo docker run \
--name my_shlink \
-p 8071:80 \
-e SHORT_DOMAIN_HOST=link.wieser-hv.de \
-e SHORT_DOMAIN_SCHEMA=https \
-e GEOLITE_LICENSE_KEY=keyfromgeolite \
shlinkio/shlink:stable
8071 ist externer Port und 80 ist der interne App Port