Updated Docker section to allow detach

This commit is contained in:
Dionysus 2023-06-10 23:27:51 -04:00
parent dcb05a1b89
commit 01ccc0397a
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE

View File

@ -64,9 +64,13 @@ apt-cache policy docker-ce
sudo apt install docker-ce sudo apt install docker-ce
sudo usermod -aG docker ${USER} sudo usermod -aG docker ${USER}
su - ${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
``` ```
--- ---