Kafka not interacting with kaka-python code in docker

So I started a kafka and zookeeper instance on the host. Now I want to interact with it via two dockers – producer and consumer The code in the PRODUCER docker is: from kafka import KafkaProducer import time producer = KafkaProducer(bootstrap_servers=[‘localhost:9092’]) i = 0 while 1: # “kafkaesque” is the name of our topic producer.send(“stupid”, […]

grunt serve in docker container max call stack error

Running grunt serve in a docker container causes node to crash (for lack of a better term). (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. util.js:35 var str = String(f).replace(formatRegExp, function(x) { ^ RangeError: Maximum call stack size exceeded When I run the […]

What is the procedure for addition and removal of capabilities in docker?

I need to enable some more capabilities other than the one provided by default. Docker documentation says it is possible to modify using a non-default profile. How to do this?

Docker – Editing Mount Options

I am adding a disk quota to my Ubuntu docker container. To add quota support, I need to edit the mount options and add usrquota as explained here: https://www.digitalocean.com/community/tutorials/how-to-enable-user-and-group-quotas Usually you would edit /etc/fstab and add the mount option. My question, how would I add a mount option to a docker container?

Verify container running state [closed]

I have a bash script, which I use to run several Docker containers. Initialization time differs on system specifications, so sometimes these cannot be started in specified order. How can I detect with use of bash, that a container is running, so following container can be started. Containers requires previously started containers.

Virtualize Kickstart Server

I have a cluster of computers and I am using one of them as a kickstart server. I configured DHCP/TFTP/FTP on it and it worked fine. When you boot any box in the cluster and choose to boot from network, it will reach out to that kickstart server, lease an IP, install OS..etc. However, using […]

Couldn't connect to Docker daemon on ubuntu

I am using docker-compose-version 1.7.0, Not using docker machine: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS it all worked perfectly for weeks… Now when i try running docker-compose up i get this error: Couldn’t connect to Docker daemon-you might need to run docker-machine start default. I cant figure out what happened, […]

Can't Query Pushed Images on Remote Registry

First, I push an image to a remote, private repository (not registry.hub.docker.com) I can pull that image back I can search for it and see it in a list of pushed images But When I log into the remote server, I cannot see those pushed images in the regular CLI (i.e., sudo docker images) If […]

curl from docker ubuntu image

I have created docker image which is based on the ubuntu image, and contains java and tomcat. FROM dockerfile/ubuntu #java, tomcat EXPOSE 80 Then: docker run -i -t -d -p 80:80 <image> Without running tomcat, just running image and attaching to it – I try to make request to any site. For example: curl google.com […]

gitlab can not change gitlab url ,i edit config,yml , gitlab.yml

i running a default gitlab container .. all is ok ,then i want to change gitlab url to my domain … there is some strange issue. i used Mac osx os. so . i used boot2docker ssh #entry my vm then sudo nsenter –target $PID –mount –uts –ipc –net –pid #entry my container ..(PID is […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.