Tag: linux

Docker: Error processing tar file(exit status 1): Error setting up pivot dir: not a directory

I am new to Docker, and don’t know what is causing this error or how to diagnose it. Any specific help with this problem or tips on where to check first to diagnose this type of problem would be much appreciated! My Dockerfile: FROM java:8 # Install maven RUN apt-get update RUN apt-get -y install […]

How do I configure Docker to work with my ens34 network interface (instead of eth0)?

does anyone know how docker decides which NIC will work with the docker0 network? I have a node with two interfaces (eth0 and ens34), however, only the requests that go through eth0 are forwarded to the container. When my VM was provisioned and Docker was installed, I started a very silly test: I created a […]

Build Docker image on different host OS

Can the underline Linux distribution and/or version differ for the following jobs: build a docker image (e.g. build a CentOS docker image in an Ubuntu host, or build a CentOS 6.6 docker image in a CentOS 7.1 host) run a docker container (e.g. run a CentOS docker container in an Fedora host, or run a […]

How to use redirects in Docker

Save Docker output to host docker run centos cat /etc/hosts > asdf “asdf” is saved in my host Linux. Save Docker output to container docker run centos sh -c ‘cat /etc/hosts > /tmp/asdf ‘ docker run centos cat /tmp/asdf cat: /tmp/asdf: No such file or directory It does not work, how can I cat the […]

Docker DNS settings

I try create docker container with custom network and dos settings. docker network create –driver=bridge –opt “com.docker.network.bridge.enable_ip_masquerade”=”true” –opt “com.docker.network.bridge.enable_icc”=”true” –opt=”com.docker.network.driver.mtu”=”1500″ –opt=”com.docker.network.bridge.host_binding_ipv4″=”0.0.0.0″ net — docker run —dns 10.0.0.2 –network=net busybox cat /etc/resolv.conf nameserver 127.0.0.11 options ndots:0 Else if I use standard network all work fine docker run –dns 10.0.0.2 –network=bridge busybox cat /etc/resolv.conf nameserver 10.0.0.2

Multiple services to run on a container or multiple containers Docker?

I have a container with a Laravel application that is used for development. So I don’t use an apache image, only a php 5.6 one. The process that keeps the container alive from not stopping is php artisan serve –host=0.0.0.0 and this is also the command that start start the Laravel application server. The application […]

Jenkins docker missing some binaries

I am running Jenkins in docker from official docker hub . I created job which runs my own shell script, however I see some binaries are missing in docker e.g.file command. They mention on docker hub that one can install additional binaries over Ubuntu’s aptitude however I don’t know which package to install to get […]

cannot connect on SQLserver with Docker on mac

I’m trying to setup SQLserver on my mac using Docker. When I start it, it seems to be working, but when I try to connect with mssql, it crashes. I have tried with localhost instead of 0.0.0.0, same result. iMac benoitd$ **docker run** -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=DB22017’ -p 1433:1433 -d microsoft/mssql-server-linux ee2f1a94410dfb6e5f39ba009ffee20b906270e9602d831ff2344e93d2ec5d14 iMac benoitd$ **docker […]

Can I run a 32bit binary in a 64bit docker container on a 64bit only host kernel?

I have a docker host machine with the following kernel according to uname -a: Linux 4.4.30-unRAID #2 SMP PREEMPT Sat Nov 5 12:09:05 PDT 2016 x86_64 Intel(R) Xeon(R) CPU E3-1265L V2 @ 2.50GHz GenuineIntel GNU/Linux This kernel is a 64 bit only kernel as far as I know. But I do need to run a […]

Docker: what are negative impacts of running container with memory limit enabled and memory overcommit disabled?

In my environment, I am going to disable the memory overcommit (vm.overcommit=2). This disables Linux OOMKiller also. The reason is that I run Java apps in docker containers with properly memory size limitation and I want to see them failing with OOMError (and writing heap dump) instead of just killed silently by linux OOMKiller. Iam […]

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