docker install

curl <https://get.docker.com> | sh
sudo usermod -aG docker $USER
sudo reboot
sudo systemctl start docker
sudo systemctl enable docker
docker --version

docker compose

sudo curl -L <https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname> -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version

minecraft

mkdir -p minecraft/data
vim minecraft/docker-compose.yml

boot

docker-compose up -d
docker-compose ps

stop

docker-compose stop

add op

docker-compose stop
cat $minecraft/data/ops.txt
usernames
docker-compose up -d