Tag: boot2docker

Docker link container – environment variables not being displayed

Hello I am trying to link my containers following this guide: https://docs.docker.com/userguide/dockerlinks/ I run docker run -d –name mongodb devops-mongodb Then I run docker run -d -P –name rest-api –link mongodb devops-rest-api To link my mongodb container to the rest-api container. Then the documentation told me to do this to view the environment variables: docker […]

Error when doing a docker ps

I have Docker installed and it runs fine, but when I have created a container and run it, I want to know the ID of the container, so I do a docker ps. But then I always get this message: Get http:///var/run/docker.sock/v1.15/containers/json: dial unix /var/run/docker.sock: no such file or directory What could be wrong here?

How to export the docker variables?

I’m new to docker.My Operating system is Mac OS. I follow the step from docker website, Download the boot2docker and install it. run the boot2docker $ boot2docker init $ boot2docker start $ docker run hello-world the result is that : bash-3.2$ docker run hello-world An error occurred trying to connect: Post x509: certificate is […]

Creating a bootstrap Dockerfile that automatically exposes files to the host operating system

I’m trying to create a bootstrap Dockerfile for web development. I would like any containers to allow for access of my code from within and also from the host operating system (Mac OS X). I cannot tell from the Docker reference what is the best way of automating this process.

Ports not accessible in Docker on Mac

NOTE: I’m a networking noob, so please explain answers accordingly. I am running boot2docker+VirtualBox on Mac OS. Launch my Docker container like this: docker run -it -p 80:80 -p 28017:28017 mine/envbox bash In the container I start nginx and mongo. Then inside the container I try: curl localhost:80 // returns content curl localhost:28017 // returns […]

boot2docker is autoupgrading

i installed https://github.com/docker/toolbox/releases/download/v1.9.1j/DockerToolbox-1.9.1j.exe as i need docker 1.9. On starting the dockertools it detected that my boot2iso is old and updated the same to latest.For sure i had unchecked the auto upgrade option during installation “upgrade boot2docker VM” I do not want to upgrade.Please help Running pre-create checks… (default) Default Boot2Docker ISO is out-of-date, downloading […]

How can I debug my docker container with docker-machine and PHPStorm

I’m trying to use Xdebug with docker and docker-machine. Here my xdebug.ini config file: zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so xdebug.remote_enable=1 xdebug.remote_autostart=0 xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.remote_log=/tmp/php5-xdebug.log Here my docker-compose.yml file: data: image: busybox volumes: – ./:/srv web: build: docker/nginx volumes_from: [data] links: – fpm ports: – “80:80” fpm: build: docker/php-fpm volumes_from: [data] ports: – “9000:9000” I have configured PHPStorm […]

How to connect to a docker container from the outside world

I have a web application that is running inside docker container which is running on an Amazon Linux ec2 instance. I would like to connect to that container from the outside world. How would I do this? I tried using the ec2 instance’s ip address and the port that is exposed, such as: 34.21.331.333:7070 but […]

Running MongoDB from Docker

I just downloaded Docker and created the MongoDB container on it. I have successfully created the container and it is working on the port on my local machine. I’m confused how should I run mongo on my machine? For example if we create the SQL container we can connect to the port using MySQL […]

Cannot connect to exposed Docker port

I’m running Docker on OS X using the latest Docker Toolbox. Docker version 1.10.2, build c3959b1 docker-machine version 0.6.0, build e27fb87 docker-compose version 1.6.0, build d99cad6 I have a Java app in a container built from the following Dockerfile: FROM <my internal registry>/java:8 ENTRYPOINT [“java”, “-cp”, “/var/app/scheduler/scheduler-jar-with-dependencies.jar”, “com.myapp.scheduler.Application”] and docker-compose.yml: scheduler: image: <my internal registry>/scheduler […]

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