1
1
# netbox-docker
2
2
3
+ [ ![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/netbox-community/netbox-docker )] [ github-release ]
4
+ [ ![ GitHub stars] ( https://img.shields.io/github/stars/netbox-community/netbox-docker )] [ github-stargazers ]
5
+ ![ GitHub closed pull requests] ( https://img.shields.io/github/issues-pr-closed-raw/netbox-community/netbox-docker )
6
+ ![ Docker Cloud Build Status] ( https://img.shields.io/docker/cloud/build/netboxcommunity/netbox )
7
+ ![ Docker Pulls] ( https://img.shields.io/docker/pulls/netboxcommunity/netbox )
8
+ [ ![ MicroBadger Layers] ( https://img.shields.io/microbadger/layers/netboxcommunity/netbox )] [ netbox-docker-microbadger ]
9
+ [ ![ MicroBadger Size] ( https://img.shields.io/microbadger/image-size/netboxcommunity/netbox )] [ netbox-docker-microbadger ]
10
+ [ ![ GitHub license] ( https://img.shields.io/github/license/netbox-community/netbox-docker )] [ netbox-docker-license ]
11
+
3
12
[ The Github repository] ( netbox-docker-github ) houses the components needed to build Netbox as a Docker container.
4
13
Images are built using this code and are released to [ Docker Hub] [ netbox-dockerhub ] once a day.
5
14
6
15
Do you have any questions? Before opening an issue on Github, please join the [ Network To Code] [ ntc-slack ] Slack and ask for help in our [ ` #netbox-docker ` ] [ netbox-docker-slack ] channel.
7
16
17
+ [ github-stargazers ] : https://github.com/netbox-community/netbox-docker/stargazers
18
+ [ github-release ] : https://github.com/netbox-community/netbox-docker/releases
19
+ [ netbox-docker-microbadger ] : https://microbadger.com/images/netboxcommunity/netbox
8
20
[ netbox-dockerhub ] : https://hub.docker.com/r/netboxcommunity/netbox/tags/
9
21
[ netbox-docker-github ] : https://github.com/netbox-community/netbox-docker/
10
22
[ ntc-slack ] : http://slack.networktocode.com/
11
23
[ netbox-docker-slack ] : https://slack.com/app_redirect?channel=netbox-docker&team=T09LQ7E9E
24
+ [ netbox-docker-license ] : https://github.com/netbox-community/netbox-docker/blob/master/LICENSE
25
+
26
+ ## Docker Tags
27
+
28
+ * ` vX.Y.Z ` : Release builds, built from [ releases of Netbox] [ netbox-releases ] .
29
+ * ` latest ` : Release builds, built from [ ` master ` branch of Netbox] [ netbox-master ] .
30
+ * ` snapshot ` : Pre-release builds, built from the [ ` develop ` branch of Netbox] [ netbox-develop ] .
31
+ * ` develop-X.Y ` : Pre-release builds, built from the corresponding [ branch of Netbox] [ netbox-branches ] .
32
+
33
+ Then there is currently one extra tags for each of the above labels:
34
+
35
+ * ` -ldap ` : Contains additional dependencies and configurations for connecting Netbox to an LDAP directroy.
36
+ [ Learn more about that in our wiki] [ netbox-docker-ldap ] .
37
+
38
+ [ netbox-releases ] : https://github.com/netbox-community/netbox/releases
39
+ [ netbox-master ] : https://github.com/netbox-community/netbox/tree/master
40
+ [ netbox-develop ] : https://github.com/netbox-community/netbox/tree/develop
41
+ [ netbox-branches ] : https://github.com/netbox-community/netbox/branches
42
+ [ netbox-docker-ldap ] : https://github.com/netbox-community/netbox-docker/wiki/LDAP
12
43
13
44
## Quickstart
14
45
@@ -54,12 +85,12 @@ This project relies only on *Docker* and *docker-compose* meeting this requireme
54
85
55
86
To ensure this, compare the output of ` docker --version ` and ` docker-compose --version ` with the requirements above.
56
87
57
- ## Reference Documentation
88
+ ## Documentation
58
89
59
- Please refer [ to the wiki] [ wiki ] for further information on how to use this Netbox Docker image properly.
90
+ Please refer [ to our wiki on Github ] [ netbox-docker- wiki] for further information on how to use this Netbox Docker image properly.
60
91
It covers advanced topics such as using secret files, deployment to Kubernetes as well as NAPALM and LDAP configuration.
61
92
62
- [ wiki ] : https://github.com/netbox-community/netbox-docker/wiki/
93
+ [ netbox-docker- wiki] : https://github.com/netbox-community/netbox-docker/wiki/
63
94
64
95
## Netbox Version
65
96
@@ -69,7 +100,7 @@ To use this feature, set the environment-variable `VERSION` before launching `do
69
100
[ any tag of the ` netboxcommunity/netbox ` Docker image on Docker Hub] [ netbox-dockerhub ] .
70
101
71
102
``` bash
72
- export VERSION=v2.6.6
103
+ export VERSION=v2.6.7
73
104
docker-compose pull netbox
74
105
docker-compose up -d
75
106
```
@@ -78,7 +109,7 @@ You can also build a specific version of the Netbox Docker image yourself.
78
109
` VERSION ` can be any valid [ git ref] [ git-ref ] in that case.
79
110
80
111
``` bash
81
- export VERSION=v2.6.6
112
+ export VERSION=v2.6.7
82
113
./build.sh $VERSION
83
114
docker-compose up -d
84
115
```
@@ -90,8 +121,9 @@ docker-compose up -d
90
121
91
122
From time to time it might become necessary to re-engineer the structure of this setup.
92
123
Things like the ` docker-compose.yml ` file or your Kubernetes or OpenShift configurations have to be adjusted as a consequence.
93
- Since April 2018 each image built from this repo contains a ` NETBOX_DOCKER_PROJECT_VERSION ` label.
94
- You can check the label of your local image by running ` docker inspect netboxcommunity/netbox:v2.3.1 --format "{{json .ContainerConfig.Labels}}" ` .
124
+ Since November 2019 each image built from this repo contains a ` org.opencontainers.image.version ` label.
125
+ (The images contained labels since April 2018, although in November 2019 the labels' names changed.)
126
+ You can check the label of your local image by running ` docker inspect netboxcommunity/netbox:v2.6.7 --format "{{json .ContainerConfig.Labels}}" ` .
95
127
96
128
Please read [ the release notes] [ releases ] carefully when updating to a new image version.
97
129
0 commit comments