Apache Zeppelin 0.8.2 docker container login? - docker

It appears all the previous version the Apache Zeppelin official docker container automatically log me in as anonymous. But the latest version, 0.8.2, asks for a login and password. I have not been able to find any mention of this anywhere. Has no one attempted to run this container?
This works: docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.8.1
This doesn't: docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.8.2

Automatic anonymous login works for me:
docker run --rm -ti \
-p 8080:8080 \
-e ZEPPELIN_ADDR=0.0.0.0 \
--name zeppelin \
apache/zeppelin:0.8.2

I'm not sure what the state of it is right now, when I start 0.8.2 I don't get an HTTP response at all. Same command with 0.8.1 works.

Related

Docker, unable to run Ghost on default port 2368

Using Official (Docker) image from docker hub:
I was expecting this to work on the default port 2368
but localhost:2368 just hung
docker run -d --name some-ghost2 -v some-ghost-data:/var/lib/ghost/content ghost
localhost:3001 worked
docker run -d --name some-ghost2 -v -p 3001:2368 some-ghost-data:/var/lib/ghost/content ghost
Then the links in the introduction pages failed as they linked to 2368
The fix, which took me a while to get to:
docker run -d --name some-ghost2 -v -p 2368:2368 some-ghost-data:/var/lib/ghost/content ghost

Zeppelin fails to load on docker: logErrors docker zeppelin

First issue I´m having is that I can not pull the base image without specifying the version tag, not a big deal... but I find it odd, after that
docker pull apache/zeppelin:0.8.2
After that I´m able to get the image, but one I try to run it as:
docker run -p 8080:8080 apache/zeppelin:0.8.2
or
docker run -p 8080:8080 --rm --name zeppelin apache/zeppelin:0.8.2
The browser just don´t show any result at the corresponding port: localhost:8080/
In the terminal I get a series of warnings an the following error:
org.glassfish.jersey.internal.Errors logErrors docker zeppelin
Zeppelin Docker documentation is missing. You can find some recent fixes in their repo, e.g. env variable ZEPPELIN_ADDR=0.0.0.0:
docker run --rm -ti \
-p 8080:8080 \
-e ZEPPELIN_ADDR=0.0.0.0 \
--name zeppelin \
apache/zeppelin:0.8.2

Unable to access Docker Daemon from Jenkins

I am running Jenkins inside a docker container.
I use the following command to start the container -
docker run -p 8080:8080 -p 50000:50000 -v "${PWD}:/var/jenkins_home" -v /var/run/docker.sock:/var/run/docker.sock aemdesign/jenkins
Notice -v /var/run/docker.sock:/var/run/docker.sock - I have done this so that I can access the docker daemon from within Jenkins as per this article.
I cd into the jenkins container using docker exec -it <mycontainer> bash
I then run docker ps -a but I still get docker command not found error.
I did some more research online and found out about the docker plugin for Jenkins, and configured it to connect to the docker daemon. I get the following error
Am I missing something? How do I solve this issue? Please note that I am doing this locally on a MAC machine.
-v /var/run/docker.sock:/var/run/docker.sock, this just means your container has ability to access docker daemon on the host, not mean your container will have the docker client.
You could use -v $(which docker):/usr/bin/docker to add docker client to your container, then you will find the command.
docker run -u root -p 8080:8080 -p 50000:50000 -v $(which docker):/usr/bin/docker -v "${PWD}:/var/jenkins_home" -v /var/run/docker.sock:/var/run/docker.sock aemdesign/jenkins
Another way if you want reserve jenkins user.
docker run -u jenkins:$(cut -d: -f3 < <(getent group docker)) -p 8080:8080 -p 50000:50000 -v $(which docker):/usr/bin/docker -v "${PWD}:/var/jenkins_home" -v /var/run/docker.sock:/var/run/docker.sock aemdesign/jenkins

Link containers to a running container

I want to know if I can link Docker containers to a running container. I am running this command on a server:
docker run -d -u jenkins --name appdev-jenkins --network=host --memory="8g" -p 80:8080 -p 443:443 -p 50000:50000 -v "/opt/jenkins":/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean
I want to be able to link another Jenkins instance as an agent to the original Jenkins instance. Is this possible?
Have you tried the following?
docker run -d --link appdev-jenkins --name second-jenkins [other params]

Install a specific docker image of Couchbase

Default command always installs the latest version (currently it's 5)-
docker run -d --name db-cb -p 8091-8094:8091-8094 -p 11210-11211:11210-11211 couchbase
I want to install 4.6.3; how can we specify version in above command.
https://hub.docker.com/r/couchbase/server/tags/
you can specify version as
docker run -d --name db-cb -p 8091-8094:8091-8094 -p 11210-11211:11210-11211 couchbase:4.6.3
Due to some internet issue, below command was not working. So i got impression that it's not the right command.
Below command works -
docker run -d --name db-cb -p 8091-8094:8091-8094 -p 11210-11211:11210-11211 couchbase:enterprise-4.6.3

Resources