Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to documentation on running with Docker #480

Open
cboyden opened this issue Nov 14, 2016 · 4 comments
Open

Add to documentation on running with Docker #480

cboyden opened this issue Nov 14, 2016 · 4 comments

Comments

@cboyden
Copy link

cboyden commented Nov 14, 2016

As noted in issue #388 the documentation on running Wraith using Docker isn't sufficient for people unfamiliar with Docker run commands or Wraith. I couldn't find a public repo for that doc site. Here are some suggestions for updates to the instructions:

  1. Install and configure Docker according to the instructions for your operating system.
  2. Get the Wraith dockerfile: docker pull bbcnews/wraith
  3. If you are starting fresh and don't already have Wraith configuration from a previous local setup, create a directory to hold configuration files and shots. For example, to store it all under your home directory (Unix or Mac):
cd
mkdir wraith
cd wraith
pwd
  1. Create an alias to make it easy to run commands. You'll need the full output of the pwd command above to insert into the alias:
    alias docker-wraith="docker run -P -v /replace/with/output/from/pwd:/wraithy -w='/wraithy' bbcnews/wraith"
  2. If you are starting fresh, run the setup command: docker-wraith setup
  3. Now you can run standard Wraith commands: docker-wraith capture configs/capture.yaml
@jjok
Copy link
Contributor

jjok commented Nov 30, 2016

I don't think you need to do steps 2 and 5. They happen automatically when you first do docker run ....

@jjok
Copy link
Contributor

jjok commented Nov 30, 2016

Oh, never mind. I didn't have to do those steps because I manually created a config file.

@kyleskrinak
Copy link

kyleskrinak commented Nov 1, 2018

I had to tweak this example to get this to work on Windows Docker CE. Note I've added the --rm flag to destroy the resulting image when done with the capture.

docker run --rm -P -v c:\path\to\wraith\dir:/wraithy -w=/wraithy bbcnews/wraith capture configs/capture.yaml

@Screenack
Copy link

One other thing: I was running a test against "127.0.0.1" which is inaccessible from the container. I used "host.docker.internal" instead, and wraith was able to access my local instance. Read here for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants