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 (6)

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

Install _lxc-docker_ according to [docs|].

* Suggest using _sudo_ instead of adding yourself to the docker group as suggested here: [dial unix /var/run/docker.sock: permission denied_ issue|].

h6. Steps

Use a _data volume container_ for persistence.

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 nexus --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|]