-
-
Save bmorton/73868209a14439472c14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage | |
# ===== | |
# ~~~ | |
# /opt/bin/tmux.sh [tmux args...] | |
# ~~~ | |
# | |
# How to install tmux in CoreOS toolbox | |
# ===================================== | |
# * `toolbox yum -y install tmux` | |
# * `sudo -s -H` | |
# * `mkdir -p /opt/bin` | |
# * `vi /opt/bin/tmux` | |
# * `chmod 755 /opt/bin/tmux` | |
# * To access `fleetctl` just add `--bind-ro=/usr/bin/fleetctl` to the list of bind-mounts in this script. | |
exec toolbox --bind=/run/docker.sock --bind-ro=/usr/bin/docker --bind-ro=/var/log/journal --bind-ro=/etc/machine-id tmux $* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment