-
Build the image from Docker file (from within
docker/0.3.1_cpu
)docker build -t pww3_cpu .
-
Run the container
docker run -v /local/dir:/container/dir -it pww3_cpu
/local/dir:/container/dir
maps a local disk directory into a directory inside the container
-
Build
docker build -t pww3:0.3.1_cpu .
-
Tag
docker tag \ pww3:0.3.1_cpu \ fracpete/pww3:0.3.1_cpu
-
Push
docker push fracpete/pww3:0.3.1_cpu
/workspace/wekafiles
- the directory thatWEKA_HOME
is pointing to (packages, props files, etc)
For using the image interactively, you can run the following command:
docker run -u $(id -u):$(id -g) \
-it fracpete/pww3:0.3.1_cpu
NB:
- Use
-v localdir:containerdir
to map directories from your host into the container. - Use
--rm
to automatically remove the container when you are exiting it.
Instead of having to reinstall your packages each time you start up the container, you can map your local Weka packages into the container as follows:
docker run -u $(id -u):$(id -g) \
-v $HOME/wekafiles/:/workspace/wekafiles \
-it fracpete/pww3:0.3.1_cpu
NB: With this approach you can separate various package installations on your host system in different directories.