Posts by a_diogo • 360 points
12 posts
-
0
votes1
answer61
viewsA: Connect to LAN database
As his db already exists at the given address 192.168.1.3, and its purpose is to access this base from within the container just change the line network_mode: bridge for network_mode: host. source:…
-
2
votes1
answer678
viewsA: How to clone/snapshot a Docker container with all data?
The idea of a container is exactly this, not having to create clones or snapshots, this is the function of a VM. As stated in the comments, the best way is to use the command docker cp found in that…
-
0
votes2
answers39
viewsA: Shellscript for returning bank values each value in 1 different variable?
It’s easier to use While: while [ condition ] do command1 command2 command3 done that is, create two conditions while, one to verify the true ones and the other for the false ones. Or so just an…
-
2
votes1
answer2528
viewsA: Release local port to Docker
You probably have another service MySql using the door :3306, should close or stop this container first. I advise installing the Docker Portainerfor better management of images and containers, in…
-
1
votes1
answer585
viewsA: I cannot log into phpmyadmin on the project using Laradock (Laravel and Docker)
Stop All services docker-compose down Edit the file .env and define MYSQL_VERSION=5.7 or MYSQL_VERSION=latest ### Deleta a base mysql $ rm -rf ~/.laradock/data/mysql ### remonta a imagem mysql $…
-
3
votes1
answer299
viewsA: How to run multiple instances of an image on different ports?
Good morning Sorack, In this case, simply change your code to porta you want to use, for example docker run -d -p 8080:8080 -e DB_URL=“127.0.0.1:BANCO” -e DB_USERNAME=“usr” -e DB_PASSWORD=“XXXXX”…
-
1
votes2
answers652
viewsA: Docker with React, refresh the updates without having to upload the container again
In the Dockerfile create the following code. FROM node:8 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package.json . COPY yarn.lock . RUN yarn COPY . ./code EXPOSE 3000 CMD [ "npm", "run",…
-
0
votes3
answers221
viewsA: Mysql LIKE cannot be found by full name
In the parameter $sqlPost = "SELECT id FROM tabela WHERE nome LIKE '%$nome%'"; it will try to search the base for words that contain nome in the word so it does not return any value, because…
-
2
votes1
answer69
viewsA: How to make an ssh connection auto-reconnect after a Broken pipe error?
You can change the ConnectTimeout of ssh_config found in /etc/ssh/ssh_config to extend the server connectivity period via SSH by changing its time to 9999999. It is not a good practice, but it can…
-
1
votes1
answer45
viewsA: I need help on the Docker
First your question is very vague, and needs new information about, which image you are using to create the container, is an application, an OS linux(which one) and if it is a version Alpine (which…
-
1
votes2
answers62
viewsA: Minificar batch
Unfortunately not, because .batch are commands executed sequentially, different from .js that is multi-paradigma, and the .css is interpreted by browser, searching for already predefined files. In…
-
1
votes2
answers284
viewsA: Schedule Crontab task by script.sh
A simpler option is to use sed at the beginning of your script, it will delete the existing lines in your crontab, and as soon as it runs the licenca.sh with the echo, a new line will be created in…