Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


# Run with weechat folder mounted to ~/vmdata/weechat on the host
mkdir -p ~/vmdata/weechat
docker run -t -i -d -v ~/vmdata/weechat:/.weechat jemc/weechat
# Attach to the running weechat from the host
dtach -a ~/vmdata/weechat/weechat.dtach

In addition to the socket file, the shared volume will be used for
configuration and logging ($HOME/.weechat on a typical weechat installation).


If dtach in the guest has problems with permissions when creating
its file socket on the shared volume, it may be caused by SELinux.
This excerpt from man docker-run describes the problem and a workaround:

When using SELinux, be aware that the host has no knowledge of container
SELinux policy. Therefore, in the above example, if SELinux policy is
enforced, the /var/db directory is not writable to the container. A
"Permission Denied" message will occur and an avc: message in the host's

To work around this, at time of writing this man page, the following
command needs to be run in order for the proper SELinux policy type
label to be attached to the host directory:

# chcon -Rt svirt_sandbox_file_t /var/db

Now, writing to the /data1 volume in the container will be allowed and
the changes will also be reflected on the host in /var/db.

The relevant command corresponding to the usage example would be:

# Set the SELinux context of the ~/vmdata/weechat directory on the host
chcon -Rt svirt_sandbox_file_t ~/vmdata/weechat
Docker Pull Command
Source Repository