-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues with keybase image #53
Comments
The important message here is
|
Yes but I did that on purpose.. I had to use a wrapper script to get run_keybase to work. I tought I could simplify it for you because of the error that happened earlier. Here is the full script, it includes itself in the docker build:
set -o errexit
function build() {
dir=$(dirname "$0")
base=$(basename "$0")
docker build -t keybase -f - "$dir" << Dockerfile
FROM fedora
RUN yum install -y gtk2 libX11-devel libXtst GConf2 alsa-lib https://prerelease.keybase.io/keybase_amd64.rpm
COPY keybase /
CMD sh /keybase start
Dockerfile
}
function x11() {
build
# SYS_ADMIN added for fuse file mounting (todo --security-opt apparmor:unconfined)
# todo: --pulseaudio or --alsa
#-- "--device /dev/fuse --cap-add=SYS_ADMIN"\
set -o xtrace
x11docker\
--hostdisplay --clipboard --home --sharedir $HOME/Downloads --pulseaudio\
keybase "$@"
}
function start() {
echo Starting Keybase..
run_keybase "$@"
#sleep 5
#tail -f ~/.cache/keybase/*.log &
while pgrep Keybase > /dev/null; do sleep 1; done
}
"${@-x11}" When I run this on another computer it works .. Maybe it is coincidence but the /etc/shadow error only appears on the broken setup. The working computer is docker v17 and the non-working is docker v18. broken: https://pastebin.com/r7KhzbTy |
There may be different behaviour due to different versions of x11docker, the first one shows 4.3.0, the second one 4.3.5. The second log is somehow incomplete, no output of container.log at all, not sure why. The error message from your first post does not appear in the first (complete) log: It shows: Adding
Maybe run_keybase forkes itself into the background like a daemon, and the container stops as it has no foreground process anymore. Don't worry about this part, everything works as intended:
|
I tested keybase on the working computer under x11docker 4.3.6-beta. It starts up correctly (is functional, aka works).
The container does not shut down properly (known bug in my script) .. needs ctrl+c Keybase is a bit involved, it has some unique features .. I did transfer over the working keybase docker image and the UI still does not appear, also I changed the while loop to I tried a reboot too, not sure what is going on.. Very strange that the working version does not show the ascii squirrel but the broken version does. The ascii logo is not related to the while loop change. |
The latest logfile does not show an error. But you expect to get a graphical GUI that does not appear on this system, but it does on the other? I found a possible issue with Also I see a warning about missing cookies on your host X. Maybe here is a difference between your systems that causes a failure on one but not on the other system. Can you try with e.g. Does the image contain any other X application like e.g. |
xterm runs fine I'm using |
It was a missing library (gtk3), the install URL for keybase does not have a version .. thanks again |
An afternote:
Not even root is allowed to read or write |
This creates a permission denied error:
Environment
$ docker build -t keybase . $ x11docker --clipboard --home --sharedir /home/james/Downloads keybase
The text was updated successfully, but these errors were encountered: