Some checks failed
Build and push / build-and-push (push) Has been cancelled
Build a new image and start container.
54 lines
2.4 KiB
Markdown
54 lines
2.4 KiB
Markdown
# portainer-ce-without-annoying
|
|
|
|
This is a drop-in replacement for [portainer/portainer-ce](https://hub.docker.com/r/portainer/portainer-ce), without annoying UI elements.
|
|
|
|
`portainer-ce-without-annoying` is **NOT** a fork of `portainer-ce`. It is just an overlay script / proxy to inject styles / scripts, allow removing DOM elements.
|
|
|
|
| Before || After |
|
|
|---|---|---|
|
|
|  | ==> |  |
|
|
|  | ==> |  |
|
|
|  | ==> |  |
|
|
|
|
**Bonus**: tracking script is also removed. See [this issue](https://github.com/ngxson/portainer-ce-without-annoying/issues/5)
|
|
|
|
## How to use
|
|
|
|
If you already have `portainer-ce` installation, just replace `portainer/portainer-ce:latest` with `ngxson/portainer-ce-without-annoying:latest`
|
|
|
|
For example, if you use the command from the [official installation guide](https://docs.portainer.io/start/install-ce/server/docker/linux), the command will be:
|
|
|
|
```
|
|
docker volume create portainer_data
|
|
docker run -d \
|
|
-p 8000:8000 -p 9443:9443 \
|
|
--name portainer \
|
|
--restart=always \
|
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
|
-v portainer_data:/data \
|
|
ngxson/portainer-ce-without-annoying:latest
|
|
```
|
|
Or, to build a new image, create a docker-compose.yml file with:
|
|
|
|
```
|
|
services:
|
|
portainer:
|
|
build: . # Here you tell it: "Look for Dockerfile in the current folder"
|
|
image: portainer-ce-without-annoying:latest
|
|
container_name: portainer
|
|
restart: always
|
|
network_mode: bridge # Această linie forțează utilizarea rețelei default
|
|
ports:
|
|
- "9000:9000"
|
|
- "9443:9443"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./data:/data
|
|
```
|
|
and start with:
|
|
```
|
|
docker compose up -d
|
|
```
|
|
|
|
Alternatively, you can use [this docker-compose.yml](http://192.168.1.10:3000/petru/portainer-ce-without-annoying/src/branch/master/docker-compose.yml)
|