I'm trying to setup my home server (Ubuntu 18.04 LTS) using some docker containers and docker-compose. While trying to setup the "transmission-rss" I get the following error:
/usr/local/lib/ruby/2.6.0/psych.rb:577:in `initialize': Is a directory @ io_fillbuf - fd:5 /etc/transmission-rss.conf (Errno::EISDIR)
And when I went to check if the transmission-rss.conf
file had been created a directory with the same name was created in its place.
I have to run the docker-compose up
command using sudo
so I don't know if this has anything to do with permissions.
Here is my current docker-compose.yml file:
version: '3'
services:
portainer:
container_name: portainer
image: portainer/portainer
volumes:
- '/home/miguel/docker/portainer/data/:/data'
- '/home/miguel/docker/portainer/socket/:/var/run/docker.sock'
ports:
- "9000:9000"
restart: always
transmission-rss:
container_name: transmission-rss
image: nning2/transmission-rss:latest
volumes:
- '/home/miguel/docker/transmission-rss/transmission-rss.conf/:/etc/transmission-rss.conf/'
restart: unless-stopped
The portainer
container starts fine.
Thank you very much, Miguel
make sure that files exist in both side (inside host machine and inside container).
if one of them not exist then docker create a directory instead of a file
- '/home/miguel/docker/transmission-rss/transmission-rss.conf/:/etc/transmission-rss.conf/'
Please remove the trailing slashes (there are 2x!) and ensure transmission-rss.conf
is a file, and not a dir on your host source.
To be slightly more comprehensive:
sudo
with docker-compose: https://docs.docker.com/install/linux/linux-postinstall (this is not the cause of your issue, but it is annoying to have to preface every command with sudo, basically just need to add your user to the docker group).docker-compose.yml
, remove the trailing slashes from source and target for transmission-rss.conf
.docker volume ls
+ docker volume rm volume_name
) after backing up your data, if needed.docker-compose
commands from), make sure the file exists, and is not a directory
docker-compose down
docker-compose build
docker-compose up
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With