Tag: docker

Tomcat Docker Container: host webapp directory mounted as container webapp directory

I’m trying to deploy a Java Web application located in my Host OS (Windows 10) and I would like to mount the mentioned webapp as a directory under Tomcat Docker Container (location /usr/local/tomcat/webapps/mywebapp). I’m running the following command in the Docker terminal (absolute path for my webapp in Windows). Note: “mywebapp” host directory already contains […]

Docker compose. Networks. Spring Boot and MySQL connection

I try to connect spring boot web app to database container. And I can ping db container from web. But web can’t connect to db by exposed 3307 port. But I can connect to db by internal container port 3306. Project very simple. What is may wrong? This is my docker-compose.yml: version: ‘3’ services: db: […]

Unix sockets vs TCP sockets in docker

It is written in Docker’s documentation that: For this reason, the REST API endpoint (used by the Docker CLI to communicate with the Docker daemon) changed in Docker 0.5.2, and now uses a UNIX socket instead of a TCP socket bound on (the latter being prone to cross-site request forgery attacks if you happen […]

can't pull images from pvt registry with spotify's docker maven plugin

I’m using Docker on Windows Server 2016. In my organization’s private registry,I’ve pushed a docker image manually. In my maven project I user spotify‘s docker-maven-plugin to pull this image and build on it. My POM: <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <version>0.4.13</version> <executions> <execution> <phase>package</phase> <goals> <goal>build</goal> </goals> </execution> </executions> <configuration> <serverId>docker-hub</serverId> <registryUrl>https:///abc-docker.xyz.abc.com/v2/</registryUrl> <imageName>my-app</imageName> <imageTags> <imageTag>${project.version}</imageTag> <imageTag>abc-docker.xyz.abc.com/my-app</imageTag> </imageTags> […]

Kubernetes can't start successful with rancher/server

Environment RancherOS 1.0.1 docker-1.12.6 rancher/server 1.5.10 Created Kubernetes environment with the Kubernetes environment template. After installing the Kubernetes stacks, only this one sometimes success but sometimes not: rancher/k8s:v1.5.4-rancher1-4 When check the detail, can see: It looks like the rancher/etc-host-updater:v0.0.2 image sometimes failed. So can rancher/server run and use Kubernetes successfully on production environment?

Docker Tools on Windows Server 2008

I am developing an application consisting of multiple containers with docker-compose. On my Windows 10 machine everything runs fine. To do some administrative tasks I want to login into one of my containers which I normally do with docker-compose exec web bash. This works fine on my Windows 10 machine. When I run this command […]

Failed load docker hdp hortonwork

I am loading docker hpd hortonworks in centos 7. When I run: docker load -i HDP_2.6_docker_05_05_2017_15_01_40.tar.gz the result is: b1b065555b8a: Loading layer [==================================================>] 202.2MB/202.2MB bcedae1b8073: Loading layer [=========================================> ] 10.41GB/12.68GB ApplyLayer exit status 1 stdout: stderr: open /usr/share/texmf/fonts/tfm/public/cm/cmssi9.tfm: no space left on device Have any solution?

How to use docker to create a minimal live ISO that runs docker?

I’m looking to create a very lightweight live ISO of ubuntu that runs docker. I’d like to be able to create this custom live ISO using a docker container to handle provisioning and all setup steps. Basically, I want to run a Dockerfile that after building/running, outputs a live ISO I could boot from that […]

Request Entity Too Large – NextCloud in Docker

I am running Docker on CentOS with the official nextcloud image, an Nginx reverse proxy, and the companion Let’s Encrypt Cert Manager. When I try to upload files larger than about 1MB, I get the error Request Entity Too Large. Per what I’ve found online (https://github.com/nextcloud/docker/issues/32 and others), I have added client_max_body_size 10G; to the […]

Container healthcheck status via tasks json

I am trying to fetch container status using the docker remote API. v1.26 I am making /tasks api call to fetch the list of tasks for a node. Is there a way to get the container status from the GET /tasks json which maps to the “Health”:{“Status”:”healthy” returned when making /containers/json ? I am basically […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.