@@ -11,22 +11,22 @@ So I'm creating one and sharing it with everyone :-) .
11
11
12
12
13
13
14
- # Running
15
- ```
14
+ ## Running
15
+
16
+ ``` bash
16
17
docker run -d -p 8081:8081 --name nexus klo2k/nexus3
17
18
```
18
19
19
20
20
21
21
22
22
- # Building with "docker buildx" locally
23
- Initialise [ buildx] ( https://docs.docker.com/buildx/working-with-buildx/ ) , if you're on a x64 machine:
24
- ```
25
- # Enable experimental mode
26
- export DOCKER_CLI_EXPERIMENTAL=enabled
23
+ ## Building with "docker buildx" locally
27
24
25
+ Initialise [ buildx] ( https://docs.docker.com/desktop/multi-arch/ ) , if you're on a x64 machine:
26
+
27
+ ``` bash
28
28
# Enable ARM support
29
- docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
29
+ docker run --rm --privileged multiarch/qemu-user-static --reset --persistent yes
30
30
31
31
# Create 'mybuilder' if not exist, set as default builder
32
32
docker buildx inspect mybuilder|| docker buildx create --name mybuilder
@@ -37,7 +37,8 @@ docker buildx inspect --bootstrap
37
37
```
38
38
39
39
Build ARM 32-bit (armv7l):
40
- ```
40
+
41
+ ``` bash
41
42
docker buildx build --pull \
42
43
--platform " linux/arm/v7" \
43
44
--tag " klo2k/nexus3" \
@@ -46,7 +47,8 @@ docker buildx build --pull \
46
47
```
47
48
48
49
Build ARM 64-bit (aarch64):
49
- ```
50
+
51
+ ``` bash
50
52
docker buildx build --pull \
51
53
--platform " linux/arm64" \
52
54
--tag " klo2k/nexus3" \
@@ -57,7 +59,8 @@ docker buildx build --pull \
57
59
58
60
59
61
60
- # Credits
62
+ ## Credits
63
+
61
64
- * Nexus Team* : For the awesome repo, and their [ Dockerfile] ( https://github.com/sonatype/docker-nexus3/blob/master/Dockerfile )
62
65
- * Dan Rollo (bhamail)* : For the [ jna-platform jar hack] ( https://bhamail.github.io/pinexus/nexussetup.html )
63
66
- * Henry Wang (HenryQW)* : For [ Docker buildx Github Action] ( https://www.henry.wang/2019/12/05/arm-dockerhub.html )
0 commit comments