Tag: ubuntu

Unable to connect to remote MySQL from a docker on Ubuntu Desktop

After much groping in the dark, I think I may have uncovered an Ubuntu Desktop specific docker issue. Please take note of the following: I work at a large corporation where my laptop is connected to internal network (that houses a remote MySQL db). My laptop runs Ubuntu Desktop OS (v14.04). I can connect to […]

How to source /etc/profile and save it in docker?

Docker:Docker version 1.0.1, build 990021a image:ubuntu:14.04.2 and named vl I run a ubuntu image and write :/usr/share/java/mysql.jar in /etc/profile than source it. And I commit the container and run it again,but I still can’t echo the $CLASSPATH. The result was blank.How to solve it? Thank you. Here was my process ubuntu@ip-xxx:~$ sudo docker run -it […]

Docker Error Pulling Images in Ubuntu

I’m trying to pull image in docker and it gives following error: root@ubuntu:~# docker pull hello-world Pulling repository hello-world FATA[0003] Get https://index.docker.io/v1/repositories/library/hello-world/images: x509: failed to load system roots and no roots provided

Enable broadcasts between docker containers

I’ve been trying to enable some UDP discovery between a few containers. It tuned out that containers have disabled broadcasts by default, missing brd for inet in: $ ip addr show dev eth0 27: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP link/ether 00:00:01:4f:6a:47 brd ff:ff:ff:ff:ff:ff inet scope global eth0 valid_lft forever preferred_lft forever […]

Cannot access files inside Vagrant Sync Folder

I’m running docker containers inside Vagrant VM (with Vbox 5.0.10 as provider), and here is my Vagrantfile : Vagrant.configure(2) do |config| config.ssh.insert_key = false config.vm.box = “ubuntu/trusty64” config.vm.box_check_update = false config.vm.network “forwarded_port”, guest: 80, host: 8585 config.vm.provider “virtualbox” do |vb| vb.cpus = 2 end config.ssh.shell = “bash -c ‘BASH_ENV=/etc/profile exec bash'” config.vm.provision “shell”, inline: <<-SHELL […]

Operation is not supported while cat memory usage of docker

Environment Ubuntu 13.04 Docker 1.7.0 (and 1.6.2) Problem After starting up kubernetes cluster, I find it’s hard to get the minion resource info, so I cat /sys/fs/cgroup/memory/memory.memsw.usage_in_bytes, Ubuntu complains that “operation is not supported” even cat with sudo. Docker did not support ubuntu raring right now, and I’ve installed Docker 1.6.2 and 1.7.0 from ppa, […]

Docker exec on an intermediate build image doesn't work

I am not sure what is going on here. It has worked in the past so I think I might just not understand what it happening. I am building an image from a Dockerfile and would like to troubleshoot why its failing. Example image FROM ubuntu:14.04 RUN useradd app -G sudo RUN apt-get update -f […]

ubuntu automatic stop a daemon doesnt happening

I`m trying to make my mysql server to stop automatically from init. root@server:/# update-rc.d mysql defaults Adding system startup for /etc/init.d/mysql … /etc/rc0.d/K20mysql -> ../init.d/mysql /etc/rc1.d/K20mysql -> ../init.d/mysql /etc/rc6.d/K20mysql -> ../init.d/mysql So the first 3 links in rc0, rc1 and rc6 are for the stopping but it doesnt happening. The host is a docker container […]

Docker – Ubuntu + Apache symbolic links permissions error

I using my Ubuntu docker VM and connected the /var/www/ directory as a volume. When running the container i’m setting the volume to a local ~/Sites directory. Inside my Sites directory I have a lot of Symbolic links to other directories. I allowed Symbolic Links in my configuration file: <VirtualHost *:80> # The ServerName directive […]

How to create a web based console that interacts with the command line

There are a few websites that allow you to code in a online editor, and then it compiles on a server and displays the output. I am guessing they are using docker and/or lxc to create a safe environment and isolate it for each session. How do they display exactly what the terminal is displaying […]

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