I am developing a nest js application and I need to deploy it to a remote server with ubuntu, i'm new with docker and everything is fine on windows 8 and ubuntu 22 i can use my app fine but on server i get this error
enter image description here error in the server
in using this docker files
enter image description here Dockerfile
enter image description here docker-compose
On my windows and ubuntu works docker-compose up dev and docker-compose up prod. It seems weird that it works on two different systems but not on the server, they all have the same version of docker and docker-compose
I try to change the version in the yml, but the error persists.
Related
I have problem with docker compose remote interpreter in PyChart. I'm using docker compose v2, PyCharm 2021.2.3 and macOS Monterey version 12.0.1.
docker compose version
# Docker Compose version v2.1.1
When I want to add new remote interpreter, I always got same error config.registryAddress must not be null. Googling shows that it can be local docker registry, but I don't have any, only private on cloud and I'm logged in there. I can pull images and all that stuff. I've tried docker compose up in terminal and it works as usual. What am I doing wrong?
I am using circleci to build images and export them as tar.gz using docker version 18.
But now I have docker 19 on all of my swarm manager and worker.
I have done the following steps to deploy services in swarm.
Load docker images using docker load command
Run docker stack deploy servername to deploy
I have tested it, and it works fine but I want to know is it the right thing to do?
It works for sure.
Here is a link with the breaking changes and incompatibilities of docker :
Documentation
When you build a public image, you cannot know the versions of docker which will pulling it, the compatibility is an important thing for the ecosystem of docker.
I get the following error when using windows docker golang image...
Job failed: Error response from daemon: manifest for
golang:latest-windowsservercore-1803 not found
line from .gitlab-ciyml file...
image: golang:latest-windowsservercore
However, when I use the default golang image which is based on linux i think, it works fine with no errors.
the below works...
image: golang:latest
I need the build phase to build windows executable;le hence the change. I have tried lots of different permutations take from...
https://hub.docker.com/_/golang
but nothing works is there something I am doing wrong?
This image is based on Windows Server Core
(microsoft/windowsservercore). As such, it only works in places which
that image does, such as Windows 10 Professional/Enterprise
(Anniversary Edition) or Windows Server 2016.
golang-dockerhub
So if you using gitlib then there is also some limitation and combination of the container.
The Docker executor
GitLab Runner can use Docker to run jobs on user provided images. This
is possible with the use of Docker executor.
The Docker executor when used with GitLab CI, connects to Docker
Engine and runs each build in a separate and isolated container using
the predefined image that is set up in .gitlab-ci.yml and in
accordance in config.toml.
The following table lists what combinations of containers, executors, and OS are supported.
docker executor
You can check also window container limitation here
I have a CentOS 7 with Docker installed on a VirtualBox. I am also new to Docker. When I run:
docker pull microsoft/aspnet
I get an error:
no matching manifest for unknown in the manifest list entries
I can see the image listed if I do:
docker search aspnet
Do I understand this correctly that this image is not suitable to run in Docker on Linux? Or is there an error getting the correct manifest - thus 'unknown' in the error message?
Running below command produces:
$ docker info -f '{{.OSType}}/{{.Architecture}}'
linux/x86_64
Some additional information - I was able to pull and successfully use microsoft/dotnet image.
That docker image is based on Windows Server Core as the base OS and also uses IIS as the web server, that makes it Windows only, you can use docker pull microsoft/aspnetcore on Linux. As for microsoft/dotnet it's cross platform and i guess it's basically the same as microsoft/aspnetcore but without the ASP stuff (sorry i'm not that familiar with Windows SDKs and Frameworks).
I am a beginner with nginx. I am using the docker nginx image to build a static website.
Here is my Dockerfile:
FROM nginx
COPY . /usr/share/nginx/html
The files copied in the container are a simple index.html with some css/js.
Here is what I did on my laptop:
I built a first webiste image and executed the container on my laptop. I could see the website by hitting http://localhost:port.
I changed the index.html, rebuilt the image and executed again the container on my laptop. I could see the changes added in index.html on the website by hitting http://localhost:port.
I did exactly the same process on a remote virtual machine but this time, I cannot see the changes I made index.html after rebuilding the image (step 2).
Here are my environments details:
Laptop:
MacOS High Serria 10.13.1
Docker version 17.12.0-ce, build c97c6d6
Virtual Machine:
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Docker version 1.12.5, build 047e51b/1.12.5
Any idea what could made this happen? Do I have to fine-tune something in nginx config files? Thanks for your help.