Skip to content

Is there a way to access the transmission-remote in the container for scripting? #2915

Answered by d03j
rpgdev asked this question in Q&A
Discussion options

You must be logged in to vote

I use podman rootless containers and run transmission on a separate user than my main user.

This is what I do to run it from outside the container:

  1. Make sure you name your container when you create it (--name=transmission), so you can always refer to your container using the same name (instead of, e.g. 9eafbc74573b, which will change with updates, etc)

  2. Add the following to your aliases (~/.alias for open_SUSE, ~/bash_aliases for ubuntu)

transmission-remote() {
  sudo -H -u MYTRANSMISSIONUSER bash -c "podman exec -t transmission transmission-remote $*"
}
alias tra='transmission-remote -a'
alias trl='transmission-remote -l'
  1. add a MYTRANSMISSIONUSER file in /etc/sudoers.d/ with the f…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@rpgdev
Comment options

@edgd1er
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by pkishino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants