Tag: linux

Docker install in user home

I have access to Grid5000 and would like to use Docker containers on it. Tutorial says, that users should install the tools in the user home. And add the user home to Path environment parameter. How can I install it without use of ap-get command? My user isn’t in sudoers group also.

Linux Networking – Docker Container to Remote Host via Gateway without using route add?

I’m struggling with a networking issue. I have a Docker instance running on 172.17.0.14 with all the containers on the 172.18.0.0/24 network. With Vagrant you would do something like sudo route add -net 172.18.0.0 netmask 255.255.255.0 gw 172.17.0.14 to access the subnet. However, when I run route add inside the container I get SIOCADDRT: Operation […]

Docker container cannot run

[frankchen@localhost ~]$ docker start sharelatex sharelatex [frankchen@localhost ~]$ docker logs sharelatex *** Running /etc/my_init.d/00_make_sharelatex_data_dirs.sh… mkdir: cannot create directory ‘/var/lib/sharelatex/data’: Permission denied chown: cannot access ‘/var/lib/sharelatex/data’: No such file or directory mkdir: cannot create directory ‘/var/lib/sharelatex/data’: Permission denied chown: cannot access ‘/var/lib/sharelatex/data/user_files’: No such file or directory mkdir: cannot create directory ‘/var/lib/sharelatex/data’: Permission denied chown: cannot […]

docker install fails with unmet dependencies on debian wheezy

I’m trying to install docker on a debian wheezy (I want to run some nodejs apps on my server..). I’ve followed steps described here but when I execute apt-get install docker-engine I get the following error: The following packages have unmet dependencies: docker-engine : Depends: init-system-helpers (>= 1.18~) but it is not installable Recommends: cgroupfs-mount […]

Automation of docker pull via scala

Env: AMI RHEL FEDORA I wrote a script file to pull latest image from private repo / registry. When execute the script from bash file it works fine. I tried to do the same from scala (sampleservice) val p = Process( path+ “execFile.sh” , Some(new File( path + execndir))) Note : execFile.sh permission is root […]

Can't discover docker container on user defined network

Since i updated to Docker version 1.10 i’m not able to find other containers on the user defined network. I’m not able to ping the newly created container connected to the same network. I’ve created a network called “my_net”. Then I’m creating a container with the flag: “–net=my_net” and calling it: “first_container”. Then When I […]

How can one influence the order of RUN commands in a Dockerfile?

I’m writing a Dockerfile where the root user creates a user named blog to manage website deployment. I’m using the Docker Hub wordpress container as a base. The root user creates folders under /var/www/html and gives the blog user permissions to write underneath. In the next set of RUN commands following USER blog, these commands […]

CentOS 7.0 docker fail to start service

I work with CentOS 7.0, and trying to configure docker, i used yum install docker for the docker installation. when I start docker service, meets the follow problems: [root@kiiby2r3 ~]# systemctl start docker.service Job for docker.service failed. See ‘systemctl status docker.service’ and ‘journalctl -xn’ for details. [root@kiiby2r3 ~]# systemctl status docker.service -l docker.service – Docker […]

Using pytz as non-root in Docker with Alpine Linux causes “IOError: [Errno 13] Permission denied”

I have the following Dockerfile (it’s a bit stripped down, the core elements are displayed here) FROM alpine:latest RUN adduser -D some_user_name &&\ apk add –update alpine-sdk &&\ apk add –update python-dev &&\ apk add –update py-dateutil &&\ apk add –update py-tz USER some_user_name CMD [“/bin/sh”] I then run this image the following way docker […]

Have to docker-machine ssh default to pull images

I just install the latest Docker on my Mac. I get an error when I run docker pull hello-world: foo:~ muxi$ docker pull docker/whalesay Using default tag: latest Pulling repository docker.io/docker/whalesay Network timed out while trying to connect to https://index.docker.io/v1/repositories/docker/whalesay/images. You may want to check your internet connection or if you are behind a proxy. […]

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