You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run the container after pulling the image from the GitHub Container Registry, use:
270
+
```sh
271
+
sudo docker run -d \
272
+
--name hplip-printer-app \
273
+
--network host \
274
+
-e PORT=<port> \
275
+
ghcr.io/openprinting/hplip-printer-app:latest
276
+
```
277
+
278
+
**From Docker Hub** <br>
279
+
Alternatively, you can pull the image from Docker Hub, by running:
262
280
```sh
263
281
sudo docker pull openprinting/hplip-printer-app
264
282
```
265
283
266
-
Run the following Docker command to run the hplip-printer-app image:
284
+
To run the container after pulling the image from Docker Hub, use:
267
285
```sh
268
-
sudo docker run --rm -d \
286
+
sudo docker run -d \
269
287
--name hplip-printer-app \
270
288
--network host \
271
289
-e PORT=<port> \
272
290
openprinting/hplip-printer-app:latest
273
291
```
292
+
274
293
-`PORT` is an optional environment variable used to start the printer-app on a specified port. If not provided, it will start on the default port 8000 or, if port 8000 is busy, on 8001 and so on.
275
294
-**The container must be started in `--network host` mode** to allow the Printer-Application instance inside the container to access and discover printers available in the local network where the host system is in.
276
295
- Alternatively using the internal network of the Docker instance (`-p <port>:8000` instead of `--network host -e PORT=<port>`) only gives access to local printers running on the host system itself.
@@ -314,7 +333,7 @@ Once the rock is built, you need to compile docker image from it.
0 commit comments