Tag: ubuntu

Can Docker automatically add IP addresses to the host upon running container

I’ve got a server on hetzner.de with around 16 public IPv4 addresses. Right now I’m running containers like this: sudo docker run -d –name test6 -it -p 5.1.2.3:80:80 sunebeck/apache-php This will initially yield this error: Error starting userland proxy: listen tcp 5.1.2.3:80: bind: cannot assign requested address. Which is fixed by adding the ip address […]

Unable to access Rancher UI after installed using docker

im using docker, so i used rancher/server via this command line docker run -d –restart=always -p 8080:8080 rancher/server i checked docker containers (docker ps -a)i find this : dc191cba6ce8 rancher/server “/usr/bin/s6-svscan /” 10 minutes ago Up 27 seconds 3306/tcp, 0.0.0.0:8080->8080/tcp naughty_almeida iptables content : Chain ufw-user-input (1 references) target prot opt source destination ACCEPT tcp […]

Start Docker Daemon as other user

Guys, I need to start docker daemon as other user under my Ubuntu 14.04.. I have this user in the sudoers’ group and in the docker’s group, but, what I need is the docker daemon running as my “test” user. test@test:/usr/bin$ start docker start: Rejected send message, 1 matched rules; type=”method_call”, sender=”:1.88″ (uid=1100 pid=24071 comm=”start […]

crontab not working ubuntu 16.04

I have referred 10+ links of similar issue but none of one worked. I am working in ubuntu 16.04 docker container. I am trying to set cron jobs. I referred this link to install cron. for making demo add below line in crontab -e (as a root user) * * * * * echo “Run […]

Dockerfile issues with build

I’m trying to compose my own docker container, my first issue is to gather the basic infrastructure – however docker build throw errors. This is my file : FROM ubuntu:14.04 RUN apt-get update && RUN apt-get install -y \ git \ curl RUN curl -sL https://deb.nodesource.com/setup_6.x | -E bash – \ && apt-get update && […]

chef-server stuck ruby_block[supervise_rabbitmq_sleep] when running reconfigure

I’m installing an instance of chef-server with this dockerfile (I based it on this file in Docker Hub) FROM ubuntu:14.04 ENV DEBIAN_FRONTEND noninteractive RUN apt-get update && apt-get install -yq wget RUN wget –content-disposition “https://packages.chef.io/stable/ubuntu/12.04/chef-server_11.1.7-1_amd64.deb” RUN dpkg -i chef-server*.deb RUN dpkg-divert –local –rename –add /sbin/initctl RUN ln -sv /bin/true /sbin/initctl COPY chef-server.rb /etc/opscode/ RUN chef-server-ctl […]

How do I know whether “init” or “systemd” controls the docker?

I follow the official document to install Docker on Ubuntu 16.04 LTS. Since my server works behind proxy, so I need to configure proxy for Docker. The processes running on my host like this: # ps -aef | grep init root 1 0 0 03:05 ? 00:00:01 /sbin/init # ps -aef | grep docker root […]

Kubernetes multinode setup cannot remove docker0 interface

I setup Kubernetes in multinode mode in Ubuntu 14.04 LTS with docker 1.7.1 by following this Guide: http://kubernetes.io/docs/getting-started-guides/docker-multinode/master/ The guide told to Remove the existing Docker bridge by sudo /sbin/ifconfig docker0 down and sudo brctl delbr docker0 everything is good until I restart the host machine (ubuntu), the docker0 interface is recreated after restart and […]

Deploying node.js web app along with docker

WE have a node.js web app.We have deployed it on server with docker. Its working fine with node version 0.10.25. But right now i have decided it to run on latest version of node 6.5.0 To accomplish this i modified the docker file which is now looking like below FROM ubuntu:14.04 RUN echo ‘deb http://security.ubuntu.com/ubuntu […]

Installing openssh-server, g++, gdb, and gdbserver in a docker container | Visual C++ for Linux Development + Docker

I would like to install the dependencies for Visual C++ for Linux Development, namely openssh-server, g++, gdb and gdbserver in a docker container. I run a docker container based on an Ubuntu image I have tried ubuntu:14.04, ubuntu:12.04 and ubuntu:latest. I am running the container in interactive mode and using bash to attempt to install […]

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