August 2024
Docker Engine Ubuntu 22.04 LTS
This is the way. Ubuntu 22.04 -
Does not work with 24.04 without
diabling Apparmour every
reboot (see comment below)
# Official Docker Oneliner
# run this
sh <(curl -sSL https:
############################################
#
# [OPTIONAL] Want Docker Compose v2?
# Cut/Paste Whole block!
#
############ cut below #####################
LATEST=$(curl -sL https:
DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -sSL https:
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
docker compose version
#############################################
#############################################
# Want Portainer GUI to manage containers?
# Cut/Paste Whole block no need to do it line by line!
############ cut below #######################
docker volume create portainer_data
docker run -d \
-p 8000:8000 \
-p 9443:9443 \
--name=portainer \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce:latest
##############################################
open your browser to: https:
##############################################
Want more?
[Optional] Install Dockge for Compose Management
############ cut below #######################
mkdir -p /opt/{dockge,stacks}
wget -q -O /opt/dockge/compose.yaml https:
cd /opt/dockge
docker compose up -d
#############################################
open your browser to: https:
##############################################