[Solved] ERROR: for plex "host" network_mode is incompatible with port_bindings
No VPN, custom media folder. The error is in the log.
Code: Select all
====================================================
___ ___ ___
___ / /\ /__/\ / /\
/__/| / /::\ | |::\ / /:/_
| |:| / /:/\:\ | |:|:\ / /:/ /\
| |:| / /:/~/::\ __|__|:|\:\ / /:/ /::\
__|__|:| /__/:/ /:/\:\ /__/::::| \:\ /__/:/ /:/\:\
/__/::::\ \ \:\/:/__\/ \ \:\~~\__\/ \ \:\/:/~/:/
~\~~\:\ \ \::/ \ \:\ \ \::/ /:/
\ \:\ \ \:\ \ \:\ \__\/ /:/
\__\/ \ \:\ \ \:\ /__/:/
\__\/ \__\/ \__\/
====================================================
Welcome to YAMS (Yet Another Media Server)
Installation process should be really quick
We just need you to answer some questions
We are going to ask for your sudo password in the end
To finish the installation of the CLI
====================================================
Checking prerequisites...
docker exists ✅
docker-compose exists ✅
Where do you want to install the docker-compose file? [/opt/yams]:
What's the user that is going to own the media server files? [eradan]:
Please, input your media directory [/srv/media]: /media
Are you sure your media directory is "/media"? [y/N]: y
Time to choose your media service.
Your media service is responsible for serving your files to your network.
By default, YAMS supports 3 media services:
- jellyfin (recommended, easier)
- emby
- plex (advanced, always online)
Choose your media service [jellyfin]: plex
YAMS is going to install "plex" on port "32400"
Time to set up the VPN.
You can check the supported VPN list here: https://yams.media/advanced/vpn.
Do you want to configure a VPN? [Y/n]: n
Configuring the docker-compose file for the user "eradan" on "/opt/yams"...
Copying docker-compose.example.yaml to /opt/yams/docker-compose.yaml...
docker-compose.example.yaml was copied successfuly! ✅
Copying .env.example to /opt/yams/.env...
.env.example was copied successfuly! ✅
Copying docker-compose.custom.yaml to /opt/yams/docker-compose.custom.yaml...
docker-compose.custom.yaml was copied successfuly! ✅
Everything installed correctly! 🎉
Running the server...
This is going to take a while...
sonarr is up-to-date
watchtower is up-to-date
gluetun is up-to-date
readarr is up-to-date
qbittorrent is up-to-date
prowlarr is up-to-date
lidarr is up-to-date
portainer is up-to-date
bazarr is up-to-date
radarr is up-to-date
Creating plex ...
ERROR: for plex "host" network_mode is incompatible with port_bindings
ERROR: for plex "host" network_mode is incompatible with port_bindings
Traceback (most recent call last):
File "/usr/bin/docker-compose", line 33, in <module>
sys.exit(load_entry_point('docker-compose==1.29.2', 'console_scripts', 'docker-compose')())
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 81, in main
command_func()
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 203, in perform_command
handler(command, command_options)
File "/usr/lib/python3/dist-packages/compose/metrics/decorator.py", line 18, in wrapper
result = fn(*args, **kwargs)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1186, in up
to_attach = up(False)
File "/usr/lib/python3/dist-packages/compose/cli/main.py", line 1166, in up
return self.project.up(
File "/usr/lib/python3/dist-packages/compose/project.py", line 697, in up
results, errors = parallel.parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 108, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 206, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/project.py", line 679, in do
return service.execute_convergence_plan(
File "/usr/lib/python3/dist-packages/compose/service.py", line 559, in execute_convergence_plan
return self._execute_convergence_create(
File "/usr/lib/python3/dist-packages/compose/service.py", line 473, in _execute_convergence_create
containers, errors = parallel_execute(
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 108, in parallel_execute
raise error_to_reraise
File "/usr/lib/python3/dist-packages/compose/parallel.py", line 206, in producer
result = func(obj)
File "/usr/lib/python3/dist-packages/compose/service.py", line 478, in <lambda>
lambda service_name: create_and_start(self, service_name.number),
File "/usr/lib/python3/dist-packages/compose/service.py", line 457, in create_and_start
container = service.create_container(number=n, quiet=True)
File "/usr/lib/python3/dist-packages/compose/service.py", line 330, in create_container
container_options = self._get_container_create_options(
File "/usr/lib/python3/dist-packages/compose/service.py", line 939, in _get_container_create_options
container_options['host_config'] = self._get_container_host_config(
File "/usr/lib/python3/dist-packages/compose/service.py", line 1014, in _get_container_host_config
return self.client.create_host_config(
File "/usr/lib/python3/dist-packages/docker/api/container.py", line 596, in create_host_config
return HostConfig(*args, **kwargs)
File "/usr/lib/python3/dist-packages/docker/types/containers.py", line 336, in __init__
raise host_config_incompatible_error(
docker.errors.InvalidArgument: "host" network_mode is incompatible with port_bindings