How to use tomcat or jenkins using docker containers - docker

I installed and started tomcat in a centos docker container. But I am unable to open tomcat in browser using HOST-IP:8080. It is showing error that this site can't be reached.

Related

Marklogic installation interrupts with JDK 18 installation

I am trying to install MarkLogic 10 and then deploy some files in the MarkLogic server using MLCP in a CentOS machine using a docker image.
I have installed the following in the CentOS machine using a docker image -
MarkLogic 10-.0-9.4x86_64.rpm,
mlcp-10.0.9 and
jdk-18.0.2.1_linux-x64_bin.rpm
When I run the container, MarkLogic installs,starts and prompts to set up the admin server on localhost.
But just after the jdk installation, the admin server automatically shuts down and hence the mlcp does not find any running host to import the file.
Is there any dependency/compatibility issue with the JDK version which I have used ?

how to change Docker server host configuration from Linux to Windows?

I am new to Docker and I am trying to setup and build docker image on my local Windows 10 machine. I created a simple .Net program and added Docker support to it. I also installed Docker Desktop on my machine. When I load my project with VS.Net 2019, I got the following error message: "A non-critical error occurred while getting containers ready. Your project will continue to function normally. The error was: Your Docker server host is configured for 'Linux', however the docker-compose project targets 'Windows'". My question is - how do I change my Docker server host configuration from Linux to Windows?
I'm assuming you have Docker Desktop deployed on your host - you can change between Windows and Linux containers by selecting the Docker icon from the icons tray, and click the option to switch:

VSCode ACI deployed Docker containers not showing in sidebar

I am new to working with containers, and was doing the docker/vscode tutorial (https://learn.microsoft.com/en-us/visualstudio/docker/tutorials/deploy-to-cloud).
The following issue has arisen during deployment (Step 9 of tutorial):
Containers deployed to Azure Cloud Instances do not show up in the sidebar.
Instead it says: "Failed to connect. Is Docker running?" and "Error: 14 UNAVAILABLE: No connection established"
This is counterintuitiv, as deployment via VScode actually worked.
Docker seems to be correctly installed:
$ docker -v
Docker version 20.10.2, build 2291f61
and the container is running:
$ docker ps
CONTAINER ID IMAGE COMMAND STATUS PORTS
agitated-newton leopkcode/getting-started Running <IP>:<PORT>
so why are running container instances not showing up in the left sidebar of the Docker extension?
I am running VSCode on WSL2.
I can reproduce this issue, the problem is that your docker engine or Docker Desktop on Windows is not running. See Install Docker Desktop on Windows.
Once the docker desktop is running and refreshes the containers in the VS docker extension. The ACI will display in the left sidebar of the Docker extension.
As pointed out by #Nancy Xiong, the issue must have been related to the local Docker installation. The exact nature is unclear, as I had made sure that both Docker engine and Docker Desktop were installed and running. Nonetheless:
Re-installing Docker Desktop Desktop (not Docker Engine) did solve the issue.

How to connect JBoss which is running in container(Docker) with the jboss cli present on the local system?

I am using docker for windows on the window 10.I want to connect the jboss server which is running in container in docker(docker is installed on my window) with the jboss cli of window.My main aim to deploy application or run test on jboss which is running on docker.
I am done this by open the ports which is connect the jboss cli ( in Container ) to the container jboss server. When I mapped my pc port with the jboss port. I am able to connect with that. In my case the port is 9999. Hope this is helpful.

PHPStorm debug application deployed using docker inside vagrant

I have a web app inside a VM (Ubuntu 14.LTS), created and provisioned using Vagrant, and inside that VM I'm running Docker with several containers (nginx, PHP, MariaDB...).
Now I'm trying to setup xdebug to debug my app with PHPStorm, but with no luck. I'm getting an error related to file mapping, and breakpoints doesn't work.

Resources