Created
April 11, 2018 15:36
-
-
Save 4lberto/246ab497bc7c3ae092eedfa86f08dba6 to your computer and use it in GitHub Desktop.
Launch a container with Nexus 3 in Ubuntu. Uses a host directory to crate a volume to store data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Create a directory to store the data in | |
mkdir nexus-data | |
chown -R 200:200 nexus-data | |
#Launch docker with a volume | |
docker run -d -p 28081:28081 --name nexus -v $(pwd)nexus-data:/sonatype-work sonatype/nexus3 | |
#show log | |
docker logs -f nexus3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment