Posts by Eduardo Baitello • 288 points
9 posts
-
1
votes1
answer41
viewsA: Error in Docker-Compose.yml
It is only a matter of indentation of the second line (below version: '2.4'). To use this YAML Anchor correctly, just remove the indentation from it (staying at the same level of version). The…
-
3
votes1
answer1932
viewsA: How to access the postgres of a Docker image?
Option 1: You can use an interactive session using Docker exec: Executes a command in a running container. Use: Docker exec [OPTIONS] CONTAINER COMMAND [ARGUMENT...] For your case, just rotate the…
-
0
votes1
answer29
viewsA: ERROR The Compose file Docker-Compose is invalid because
YAML files have indentation-based notation. This means that one should take the appropriate step back when defining parameters of the same configuration (by convention, two blanks are used as…
-
2
votes1
answer55
viewsA: How to format response of a bash command?
A one-line solution is to use the for to iterate on all files *.pdf of the current directory, giving a echo in the file name itself and concatenating the : with the return of the number of pages.…
-
1
votes1
answer2036
viewsA: Error: Starting container process caused "exec: "/Docker-entrypoint.sh ": permission denied"
The mistake permission denied probably means your file docker-entrypoint.sh is without read and/or run permissions. The three basic permissions for files are: (R) Reading: Ensures permission to read…
-
0
votes2
answers761
viewsA: Connection between two Docker containers
When using the links, you are specifying a service:alias which allows the container to be accessible using the defined service name and/or alias. For example. When defining: php-fpm: links: - mysql…
-
2
votes1
answer50
viewsA: Doubt about Git - branch master
The configuration responsible for the prompt string is done by variable PS1. Assuming Linux + bash, this variable must be set in .bashrc of your user. If everything is all right with the…
gitanswered Eduardo Baitello 288 -
0
votes1
answer50
viewsA: Gitlab-CI.yml does not share ratings
Define the cache globally is the approach that allows you to share the dependencies generated between the Jobs. Here’s a example of Nodejs dependencies. You’re already doing it, though is specifying…
-
1
votes1
answer55
viewsA: How to access the Docker container receiving error message while running exec command
The error is clear: The file bash could not be found. Possible problems are: To variable $PATH is not properly defined to find the binary. The image used in your container doesn’t really have the…
dockeranswered Eduardo Baitello 288