Skip to content

Instantly share code, notes, and snippets.

@SudarshanTevari
Last active November 22, 2023 16:15
Show Gist options
  • Save SudarshanTevari/a061ff5df261fa5df161a61fa9d47b35 to your computer and use it in GitHub Desktop.
Save SudarshanTevari/a061ff5df261fa5df161a61fa9d47b35 to your computer and use it in GitHub Desktop.
Docker container creation using sonatype/nexus3 image for ARM64 or (linux/arm64/v8)

To build the “sonatype/nexus3” Docker image from the Dockerfile on an ARM64 or (linux/arm64/v8) machine, you can follow these steps:

  • Clone the repository containing the Dockerfile by running the following command:
git clone https://github.com/sonatype/docker-nexus3.git
  • Navigate to the directory containing the Dockerfile by running the following command:
cd docker-nexus3
  • Build the Docker image from the Dockerfile by running the following command:
docker buildx build --platform linux/arm64 -t sonatype/nexus3 .
  • Create docker volume for nexus data collection:
docker create volume nexus_data
  • Create docker container:
docker run -d -p 8081:8081 -v nexus_data:/nexus-data --restart=always --name nexus sonatype/nexus3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment