From dcb05a1b89122841882fcff725687b5a3f004cf8 Mon Sep 17 00:00:00 2001 From: acidvegas Date: Fri, 9 Jun 2023 21:34:10 -0400 Subject: [PATCH] Added docker information for running weechat in a container --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index a79e8cf..4b68723 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ - [Setup](#setup) - [WeeChat](#weechat) - [Relay](#relay) + - [Docker](#docker) - [Settings](#settings) - [Appearance](#appearance) - [Settings](#appearance) @@ -52,6 +53,22 @@ echo -e "[Unit]\nDescription=headless weechat relay service\nAfter=network.targe systemctl --user enable weechat-headless ``` +###### Docker +```shell +sudo apt update +sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common +curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - +sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" +sudo apt update +apt-cache policy docker-ce +sudo apt install docker-ce +sudo usermod -aG docker ${USER} +su - ${USER} + +mkdir -p ~/.weechat-container +docker run -ti -v $HOME/.weechat-container:/home/user/.weechat weechat -d /home/user/.weechat +``` + --- ### Settings