What you need ? Docker is installed A simple Spring Boot application To start, we will go to the root folder of the project and create a new text file called Dockerfile. It’ll contain all steps necessary to create an image. For this tutorial, it looks like this: let’s explain every step : FROM java:8-jdk-alpine […]
Objective In the end of this tutorial we will have two Docker containers running on the same host, one will be for Jenkins and the other for SonarQube. In the Jenkins container, we will use sonar-scanner running locally to perform the code quality inspections. Jenkins Installation Downloading Jenkins We will start by downloading the official Jenkins image […]
(SOLVED) the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’ !!
If you try to access the Jenkins Docker container from a bash shell on windows 10 using this command : You got this error !! the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’ Solution : Use this command to access the bash shell
To stop all running containers, enter the docker container stop command followed by the containers IDs: or stop and remove all containers using this command :
Docker How to list containers ? In Docker, we can use docker ps to show all running containers, docker ps -a to show all running and stopped containers. Here are some of the commonly used examples : Terminal What is ps ? The ps stands for process status. On Docker, it shows the status of […]
In this article, we will show you how to use docker cp to copy files or folders from a docker container to the host (local file system) or the reversed. For example, here is a running container, id is d362659da5fc, later we will copy files from and to this container. The docker cp command works […]