Tag: ubuntu

Setting up a local docker swarm w/o physical network

I’d like to use the swarm orchestration shipping with 1.12 on my notebook. I’d like to set it up as a one node swarm which I want functional no matter if the machine is on any physical network or not. I am already running a bunch of containers on the system. My physical network is […]

How to store data in external drive with Docker Postgres:9.3 image?

I want to setup my database inside a container using the Postgres:9.3 docker image, however I want to store my data in external drive. I attempted it using the command `docker run -dit -p 5432:5432 -v /mnt/external/docker_volume:/var/lib/postgresql/data –name mydatabase postgres:9.3` Container got created as it echoes the container id, but it is not shown as […]

I am trying to assign an ip from our corporate LAN to a docker container

I have followed this “Poor Men’s Routable Container IPs for Docker Clusters” guide to get my container to get an IP from our corporate LAN. Everything seems to work, I am able to ping the container from the host and host from the container but I cannot reach anything else from within the container, including […]

Share folders between host and container in docker for Windows

I’m using the lastest Docker for Windows, which needs Hyper-V to be enabled, and virtualbox cannot be used in this case. I’ve installed the the ubuntu container and started it, I want to mount C:\Users\username in the docker container. I’ve tried the following methods. docker run -t -i -v /c/Users/username:/mnt/c ubuntu /bin/bash docker run -d […]

Dockerfile not able to build on Ubuntu 14.04 but does fine on Windows 10 and Ubuntu 16.04

I have the following Dockerfile – FROM ubuntu:16.04 RUN apt-get update -y && apt-get install -y \ python-pip \ python-dev \ python-lxml \ build-essential \ qt5-default \ libqt5webkit5-dev \ xvfb \ git RUN pip install –upgrade pip && pip install \ lxml \ xvfbwrapper \ flask \ bs4 \ dryscrape # copy all files to […]

How to start docker container in memory?

Is it possible to start container in memory? If yes how I could do it? I want to start container with DB inside (Postgresql) for testing purpose. P.S. I use Ubuntu 16.04

docker-compose build leads to client and server don't have same version (client : 1.18, server: 1.17)

I tried to build docker using docker-compose build but facing issue like client and server don’t have same version (client : 1.18, server: 1.17). I found solution using curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose“ chmod +x /usr/local/bin/docker-compose`. When tried again build I got Unsupported config option for services service: ‘nginx’ docker-compose.yml use version: ‘2’ […]

docker non-root bind-mount permissions, WITH –userns-remap

all: flailing around trying to get bind-mount permissions working. My goal is to bind mount a volume in a container, so that: (a) the container does NOT run the entry point as root user (b) the docker-daemon is configured with –userns-remap, so that container doesnt have root on the host (c) I can bind-mount and […]

Updating docker-compose Ubuntu 15.10

I’m working through a tutorial for XGBoost (see: https://github.com/ParrotPrediction/docker-course-xgboost), but am getting an error when running $ docker-compose up That I am fairly sure is caused by an outdated docker-compose version (-v tells me 1.3.1) resulting in an incompatibility with the new version 2 filetype. However, when running sudo-apt get update, it tells me this […]

How do I configure amount of RAM to be used by kalabox on Ubuntu

I’m trying to run 2 instances of kalabox for two separate pantheon wordpress sites on my laptop with 6 GB of RAM and my system grinds to a crawl when I boot up (kbox start) the second app. As I’m on Ubuntu I can’t just tweak the Kalabox memory setting in VirtualMachine as it’s not […]

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