Tag: osx

Connecting to Kubernetes on Docker on OSX?

I’m on an OSX host using docker-machine to manage my docker installation. I’m trying to get a kubernetes cluster set up and I’m having a hard time running kubectl on my host. Right now I’m running this to launch it: . docker_kube_env.sh # Set K8S_VERSION and KUBECONFIG docker run \ –volume=/:/rootfs:ro \ –volume=/sys:/sys:ro \ –volume=/var/lib/docker/:/var/lib/docker:rw […]

Docker cannot write to assets folder as web server process in Yii/PHP application locally OS X

appreciate if you could help me. I’m running docker VM in a MAC OS X and seems okay until i reach a permissions error when my app is trying to write files in the assets folder in the server: CAssetManager.basePath “/var/www/html/assets” is invalid. Please make sure the directory exists and is writable by the Web […]

Setting up docker on the mac: Cannot connect via localhost

I’m just setting up docker on my Mac. The installation worked and I got some containers running (following the getting-stared guide), but now I want to connect with my browser to localhost, to show a web app. For that I’m following this guide: https://docs.docker.com/engine/userguide/containers/usingdocker/ In the last section it is said, that you simple go […]

How to build a Docker image for an Arm architecture on a Mac?

I’m trying to figure out how to use Docker’s new beta on my Mac to build an image for a different architecture. Specifically I’m trying to build for Raspberry Pi which uses an Arm processor. Any ideas?

docker-compose is not working on Docker Beta for OS X

I’m using docker Version 1.11.1-beta11 (build: 6974) on OS X (which is native). It has a fancy migration tool to help you to move images from docker-machine to native docker (or something like that). Everything was working perfect, I even was able to start containers through docker-compose but then I rebooted my laptop and now […]

Excuting a shell script in code fails while it works in the terminal

I have a short program running on mono that builds a shell script to collect logs from a set of running docker containers. The script consist of a series of commands like the one below docker logs $(docker ps -f ancestor=comp/bff -q) > bff.log if I execute in the terminal it works as I expect. […]

Setting up docker on Mac OS – php-intl cannot be installed

I have the following problem: I want set up a development environment on my Mac using docker and boot2docker. For that I created an image using the below Dockerfile. The Problem is, that my php-intl-Extension cannot be installed.. I tried various method. For example to enable it in php.ini via: extension=php_intl.so None of the methods […]

sublime sftp connects to wrong container

I have two different docker containers under the same host stack. Currently I’m on OSX and using sublime text 3 with the SFTP plugin. For each different dev environment (docker container) I have a different sftp-config.jsonfile and I am using different SSH key files. Here are my host entries for both files: first host: “host”: […]

OSX / Mac with Kitematic / Docker : Tunnel / Port forwarding for access via external url

What would be the recommended best practise when it comes to tunneling / port forwarding for external access to local development. Achieving this is not a problem itself. Could set it up manual. But i would like to ask the community for recommended solutions that can be automated from my build for smooth external access […]

Add your application to a Docker image

I am implementing a docker container to compile (build) my code which is in C++. Platforms supported by my code are Windows, Linux and Mac OSX. I am using clang on my Mac machine to compile the code; gcc on Linux and Microsoft compiler(cl) on Windows. The idea is to create a Docker container and […]

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