From 01ccc0397a498802a6efd82aac947c47da63b4ec Mon Sep 17 00:00:00 2001 From: acidvegas Date: Sat, 10 Jun 2023 23:27:51 -0400 Subject: [PATCH] Updated Docker section to allow detach --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4b68723..8116bb3 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,13 @@ 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 +``` +mkdir -p ~/docker/weechat/data +mkdir -p ~/docker/weechat/config +docker run -it -d --restart unless-stopped -v "~/docker/weechat/data:/home/user/.weechat" -v "~/docker/weechat/config:/home/user/.config/weechat" --name weechat weechat/weechat:latest-alpine` +docker attach weechat # Detach with CTRL-p CTRL-q ``` ---