From dc13d52679091514db9b632e75f8fbcd7ddb0d43 Mon Sep 17 00:00:00 2001 From: Ryan Seys Date: Fri, 15 Nov 2013 10:24:16 -0500 Subject: [PATCH 1/3] Add instructions for running self-built container --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 94d052f..38b3329 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,4 @@ down ZNC's startup with a few seconds. 1. Install Docker (http://docker.io/). 2. Checkout source: `git clone https://github.com/jimeh/docker-znc.git` 3. Build container: `sudo docker build -t $(whoami)/znc .` +4. Run container: `sudo docker run -v /home/$(whoami)/.znc:/znc-data $(whoami)/znc` From 16295102eec75537df224fffa83faf24aa04c655 Mon Sep 17 00:00:00 2001 From: Ryan Seys Date: Fri, 15 Nov 2013 10:25:15 -0500 Subject: [PATCH 2/3] Change directory after checking out source --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 38b3329..4723e52 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,6 @@ down ZNC's startup with a few seconds. ## Building It Yourself 1. Install Docker (http://docker.io/). -2. Checkout source: `git clone https://github.com/jimeh/docker-znc.git` +2. Checkout source: `git clone https://github.com/jimeh/docker-znc.git && cd docker-znc` 3. Build container: `sudo docker build -t $(whoami)/znc .` 4. Run container: `sudo docker run -v /home/$(whoami)/.znc:/znc-data $(whoami)/znc` From a251343b59bd56e9c2c2be1165ba1517f1c6ac47 Mon Sep 17 00:00:00 2001 From: Ryan Seys Date: Fri, 15 Nov 2013 10:28:33 -0500 Subject: [PATCH 3/3] Run ZNC in Docker as a daemon Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4723e52..6577edf 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Run the [ZNC](http://znc.in) IRC Bouncer in a Docker container. To retain your ZNC settings between runs, you will need to bind a directory from the host to `/znc-data` in the container. For example: - docker run -v /home/$(whoami)/.znc:/znc-data jimeh/znc + docker run -d -v /home/$(whoami)/.znc:/znc-data jimeh/znc This will download the image if needed, and create a default config file in your data directory unless you already have a config in place. The default @@ -19,7 +19,7 @@ exposed: Or if you want to specify which port to map the default 6667 port to: - docker run -p 36667:6667-v /home/$(whoami)/.znc:/znc-data jimeh/znc + docker run -d -p 36667:6667-v /home/$(whoami)/.znc:/znc-data jimeh/znc Resulting in port 36667 on the host mapping to 6667 within the container. @@ -52,4 +52,4 @@ down ZNC's startup with a few seconds. 1. Install Docker (http://docker.io/). 2. Checkout source: `git clone https://github.com/jimeh/docker-znc.git && cd docker-znc` 3. Build container: `sudo docker build -t $(whoami)/znc .` -4. Run container: `sudo docker run -v /home/$(whoami)/.znc:/znc-data $(whoami)/znc` +4. Run container: `sudo docker run -d -v /home/$(whoami)/.znc:/znc-data $(whoami)/znc`