


$ mkdir -p /some/dir/nexus-data & chown -R 200 /some/dir/nexus-data This is not portable, as it relies on the directory existing with correct permissions on the host. $ docker run -d -p 8081:8081 -p 5000:5000 -restart=unless-stopped -name nexus -v nexus-data:/nexus-data sonatype/nexus3 Since docker volumes are persistent, a volume can be created specifically for this purpose. OPTIONS='-selinux-enabled -log-driver=journald -signature-verification=false' # Modify these options if you want to change the way the docker daemon runs

Nexus install: /etc/sysconfig/docker # /etc/sysconfig/docker The procedure below describes the configuration of the Sonatype Nexus to run on the Docker host with IP address HOST_IP on unsecured port 8081 with the Docker repository configured on unsecured port 5000.įor Ubuntu Linux system, add a new entry into /etc/docker/daemon.json for insecure-registries.įor CentOS 7.X/RedHat 7.X system, it will probably be necessary to change /etc/sysconfig/docker. Nexus: after installation use admin/admin123.Nexus Repository Installation Credentials
