Questions tagged as 'docker'

1
answer

How to create the docker file of a maven java SE program?

Actually I wrote a maven java SE application using netbeans and made a CRUD for some entities that are persisted in the bank through JPA. I would like to know if it is possible to run a textual interface of this program in DOCKER A web applicat...
asked by 12.08.2016 / 22:03
1
answer

Container closes immediately on docker-compose

I set up a larvel project, created a docker-compose below: # v3 syntax version: 3 services: # PHP (apache) blog: image: php:7.1-apache container_name: blog-apache ports: - "8000:80" volumes: - .:/var/www/blog...
asked by 13.10.2018 / 18:57
1
answer

Install mongo driver in container apache + php

I've set container according to yml below: web: container_name: "apache" image: tutum/apache-php ports: - "80:80" volumes: - /home/administrador/public_html:/var/www/html restart: always However, the image used does not...
asked by 01.09.2018 / 21:14
1
answer

Error connecting to MySQL with PHP and Docker

I'm running Docker and in the settings correctly step the credentials for the connection to MySQL (MariaDB), however it always returns the following error: http://localhost/error.php?err=Unable%20to%20connect%20to%20MySQL That is, 'Unable t...
asked by 13.07.2018 / 18:43
1
answer

Botpress installed one version, displaying the other at application start

I'm trying to run version 10 ( develop/x ) of botpress , but whenever I give start it displays version 1.1.13 root@3900662b3eb1:/bot# bp start 18:49:25 - info: Starting botpress version 1.1.13 18:49:25 - info: Loaded botpr...
asked by 02.03.2018 / 19:54
2
answers

How can I automatically execute a script when creating a container?

I have the following need: when creating a new container I would like to automatically run the /usr/local/bin/start script that is inside the image, this script basically verifies that the variable ENVIRONMENTAL TYPE is equal to prod ,...
asked by 16.01.2018 / 00:58
1
answer

Is there a difference in "connecting" to the container via docker attach or docker exec?

My question is: is there a difference in "connecting" to a container using the statement docker attach and docker exec -it container /bin/bash ? My container was created like this: docker run -it -p 80:80 --name dev debian:st...
asked by 14.01.2018 / 13:49
1
answer

How to run PHP + Firebird in Docker?

I'm trying to run / create a container in docker with PHP + Firebird, I found a container that runs Firebird , I found another one that runs PHP and Firebird, but when I try to consume the database: $conn = ibase_connect('localhost:/databas...
asked by 20.12.2017 / 02:13
2
answers

how to ignore a line in dockerfile using dockerignore?

I need to ignore a line in dockerfile using dockerignore or anything that helps me troubleshoot a problem. I am sending print of the errors that happened. I need to ignore the following line in dockerignore: ADD. / home / hubot / node_modules...
asked by 01.12.2017 / 12:58
1
answer

Doubts the communication between containers

I have a question about container communication, in my docker-compose I am creating a link between the web and mysql container. Would this link be an internal network? If not, would it be more performative to create an internal network?...
asked by 07.10.2017 / 16:08