POST
How to solve truncated docker output in Mac OS X using boot2docker
If you are using docker on Mac OS X using boot2docker (http://docs.docker.io/installation/mac/), you may see truncated output from docker run
, and also may have noticed that docker attach
does not work properly, producing only some output and then exiting. This bug is documented here: https://github.com/boot2docker/boot2docker/issues/150, where I also found the following workaround. Documenting it here in case anyone finds it useful:
Instead of using the default value of DOCKER_HOST
provided by boot2docker up
, establish the docker connection through an ssh tunnel:
$ boot2docker ssh -L 14243:127.0.0.1:4243 -N
docker@localhost's password: <type password>
[press Ctrl-z to suspend the command]
$ bg
$ export DOCKER_HOST=localhost:14243
Now all docker connections will go through the ssh tunnel instead of through VirtualBox port forwarding, and things will work fine.
- Related:
- My blogging setup with Emacs, Org mode, ox-hugo, Hugo, GitLab and Netlify
- How to easily create and use human-readable IDs in Org mode and Doom Emacs
- My Doom Emacs configuration, with commentary
- August 2020 release of "Learning Hammerspoon" is out!
- How to insert screenshots in Org documents on macOS
- New release of "Learning Hammerspoon" is out!
- First release of "Learning Hammerspoon"
- My Hammerspoon Configuration, With Commentary
- My Emacs Configuration, With Commentary
- My Elvish Configuration With Commentary
- Just Enough Lua to Be Productive in Hammerspoon, Part 2
- Just Enough Lua to Be Productive in Hammerspoon, Part 1
- Using Nix's "Single-user Mode" on macOS
- Fixing the Outlook-to-OmniFocus Script
- Using Spoons in Hammerspoon
- Hosting a Ghost Blog in GitHub - the easier way
- Getting Started With Hammerspoon
- Fast translation with Google Translator
- Spotlight: use-package, a declarative configuration tool - Mastering Emacs
- Moving files between git repositories, preserving history
- Find all single-note tags in Evernote
- HowTo: Changing the available display formats for Evernote's "Insert Date" command
- Installing cfengine on Mac OS X
- Automatically creating tasks from email in Outlook
- Making cygwin, Windows and emacs understand the same symlinks
- Storing CFEngine configuration in CVS
- Installing cfengine on Windows 7 under cygwin