compared with
Current by Erik Drolshammer
on Jul 08, 2015 15:30.

This line was removed.
This word was removed. This word was added.
This line was added.

Changes (7)

View Page History
h6. Install and configure Docker
Moved to []

Install docker according to [docs|]:
{code} -----
wget -qO- | sh

h6. Steps

Use a _data volume container_ for persistence.

sudo mkdir /data
sudo docker create -v /data/nexus_home --name nexus-data sonatype/nexus
sudo docker pull sonatype/nexus
--sudo docker run -d --name nexus-data sonatype/nexus echo "data-only container for Nexus"--
sudo docker run -d -p 8081:8081 --name nexus20150527 --volumes-from nexus-data --restart=on-failure:10 sonatype/nexus

* *TODO* Evaluate how to restart nexus at boot.
** []

* Follow the [Post-Install Checklist|]

h6. Explore

Check that you now have two containers. nexus-data container do not have to be running.
sudo docker ps -a

curl http://localhost:8081/service/local/status

sudo docker exec -t -i nexus /bin/bash

h6. Read more
* [Persistent volumes with Docker - Data-only container pattern|]