Tag: linux

Docker Lavarel Storage Permission Error

I have a Docker container running a PHP Lavarel app. The docker image can be found at: https://hub.docker.com/r/niaquinto/laravel/. When I go to the app in the browser, I get the following error: file_put_contents(/share/app/storage/meta/services.json): failed to open stream: Permission denied Screenshot: http://d.pr/i/1327m I’ve tried: I’ve updated the 1000 user to give www-data ownership over the storage […]

Oracle Java in Docker Container cannot resolve hostname after /etc/nsswitch.conf changed

I was minimizing Oracle-JRE 8 Docker Image to deploy my own playframework app. Host: CentOS 7 minimal + Oracle JRE 8 The steps are as following: Create bash docker image with busybox, since playframework generate bash based startup scripts. I built bash binaries, and use ldd /bin/bash to find related lib so files, and ADD […]

Docker: Write Permission on directory, but user cannot write

I have a SLES11 docker image that I run using docker-machine (virtualbox VM) on OS X. It shows odd behaviour when it comes to file permissions. The Volume in question is not mounted via ‘-v’, it is provided by the image (not persistent or explicitly shared with the host OS) Inside the docker image I […]

can't install weblogic on docker on OracleLinuxServer 6.7

I am trying to install Weblogic on docker following instructions on the site Getting Started with Oracle WebLogic Server on Docker Containers on VirtualBox with Oracle Linux Server 6.7 and kernel 3.8.13-118.2.1.el6uek.x86_64. I have done correctly till step 4 and when I ran step 5 i.e. sudo sh buildDockerImage.sh -d first it installs OracleLinux then […]

Obtaining Docker public key.json file

I see a /etc/docker/key.json on Fedora 23 machine. This file seems like a private key for authentication https://github.com/docker/docker/issues/7667 At what time is it generated ( its not present in output of rpmls docker ), and how do I obtain a corresponding public key? My usecase is to enable a non-root user to run docker ps […]

Restoring package state without upgrade to keep Docker Container small

As a step of a Dockerfile I need to install the build-essential package (if not available) and run make. To keep the footprint of the container nice and small; I would also like to remove build-essential and all resulting dependencies when done. Simply removing it with apt-get remove followed by autoremove does not work; most […]

RHEL7: How to solve “ import read failed(2)”?

I am trying to add Docker’s public key for CS packages using the following command( which is taken from the link https://docs.docker.com/docker-trusted-registry/install/install-csengine/): sudo rpm –import “https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e” However, I am getting the following error on running the above command: curl: (6) Could not resolve host: sks-keyservers.net; Name or service not known error: https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e: import read failed(2). […]

bash script to start a docker container running a mono console application cannot send commands in interactive mode

Assuming the container name is “dave” and the mono application is called “dummy_app” dockerfile for the container: FROM mono:latest ADD . /src EXPOSE 8081 RUN xbuild /src/dummy_app.sln CMD [ “mono”, “/src/dummy_app/bin/Debug/dummy_app.exe” ] script: echo “Start” sudo docker start -i dave echo “debug true” The script stalls at the line “sudo docker start -i dave” because […]

Mount a file in read/write mode for all in Docker

On my MacOS laptop I mounted a file in my newly created container using: docker run –name mediawiki –link mysql:mysql -p 80:80 -v /Users/poiuytrez/Downloads/LocalSettings.php:/var/www/html/LocalSettings.php –rm poiuytrez/mediawiki:1.25.3 However, apache seems to have issues to read the file. We can learn by running a bash command in the container that the read permissions is not applied for […]

deploy wso2esb in docker container with kubernetes

can someone help with how to deploy wso2esb in docker container with kubernetes? currently im running only one node/master at local machine with ubuntu server 14.04 LTS if im running with this sudo docker run –name esb isim/wso2esb it instantly trigger the service inside the container but if im running with this kubectl run esb1 […]

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