I'm trying to build and deploy a project from GitHub (the following) using ZEIT Now hosting service using docker.
I followed the instructions in the readme.md of the GitHub project and as soon as i get to the fourth step:
now --public --docker (you might need to login once)
I get the following error:
"> Error! Unknown or unexpected option: --docker"
I installed Docker Toolbox (I'm running Windows 7 x64) and the docker command seems to be working normally in the command prompt, i've used it to identify the docker version i have which is 18.03.0-ce
I'm new to this so sorry if i'm getting anything wrong.
V2 accounts of Now.sh doesn't support Docker deployments.
Related
my environment :
MacOS M1 chip
VSCode version 1.66.2 arm64
local installed docker version : 20.10.22
I have situations that docker is not working in VSCode.
I already installed docker in local. But when I'm trying to connect docker in VSCode, repeatedly asking install docker extensions. (but I do have docker already ). and if I do reinstall with following the VSCode, the docker version was broken (changed to intel chip docker).
Does anybody know what's wrong?
Docker Extensions for VS Code have nothing to do with the Docker engine itself. They are like an additional layer of tools and commands over the installed Docker. E.g. they provide IntelliSense for editing Docker-related files, you can run Docker commands from F1 drop-down, etc. But you should be able to do all the required tasks even without Docker Extensions, e.g. from the Terminal in VS Code, but for this the path to Docker CLI (command line interface) should be added to PATH environment variable.
If you are getting failed to connect error then maybe Docker engine is not running. Please refer to https://docs.docker.com/desktop/install/mac-install/ and https://docs.docker.com/desktop/troubleshoot/overview/ about how to check if the engine is running and how to troubleshoot the issues.
If that doesn't help, please provide some specific error and steps, which led to it, then we'll try to find out.
There is a blog, how to do it with Java Version 11:
https://vaadin.com/blog/how-to-create-a-docker-container-for-a-vaadin-java-app
When i follow this guide and use Java11 for the Application, everything is good.
But when i try to use the same manner for Java17 (the latest LTS), the docker image build is successfull, but the container crashes with a tomcat-server issue:
error log at running container
Did anyone ran the same issue or know how to fix this. The blog-post about dockerize a vaadin app seems to be outdated, and there isn't one out for Java version 17.
To replicate the issue, go to the starter https://start.vaadin.com/app and choose Java 17. Then follow this Blogpost https://vaadin.com/blog/how-to-create-a-docker-container-for-a-vaadin-java-app to dockerize it and replace the openjdk-image version to 17.
Build and then run the container. Appreciate any help.
You can check a box for "Docker config" under Java version in start.vaadin.com to generate a Dockerfile for your app before downloading.
You can then build the container using the docker build . -t myapp:latest command and run it on localhost using docker run -p 8080:8080 myapp:latest
You can also find these instructions and instructions on how to add a Dockerfile to existing Vaadin 23 applications in the Vaadin 23 technical documentation: https://vaadin.com/docs/latest/production/docker
I set up a Windows GitLab runner that's supposed to download a Docker image from our Container Registry and then run a build script in the pipeline. Unfortunately the Docker container never launches due to the following error:
Running with gitlab-runner 15.1.0 (76984217)
on WindowsDockerRunner wZMWQZYi
Resolving secrets
Preparing the "docker-windows" executor
Using Docker executor with image mcr.microsoft.com/windows/servercore:ltsc2019 ...
Pulling docker image mcr.microsoft.com/windows/servercore:ltsc2019 ...
Using docker image sha256:e6b07227af5ca9303c2112b574f6f27f38135bbf9df29d829142410221967401 for mcr.microsoft.com/windows/servercore:ltsc2019 with digest mcr.microsoft.com/windows/servercore#sha256:26c6c296a4737ba478fe3c3e531b098f89b5562c40b416ba6fb8177ac462d1af ...
Preparing environment
Running on RUNNER-WZMWQZYI via
runner2...
ERROR: Job failed (system failure): prepare environment: Error response from daemon: invalid condition: "not-running". Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information
The error message doesn't clearly state what the cause of the problem is and the documentation that it references doesn't mention anything about "condition". Based on the link pointing to shell profiles I suspect it might have something to do with the shell that's being run, but when I run the Docker container locally it boots into PowerShell just fine.
Does anyone know how to solve this?
I came across this issue after installing Docker Engine using the Windows Server install script, which fetches docker.exe and dockerd.exe from https://master.dockerproject.org, These builds were last updated in March 2022, I found gitlab-runner 14.9 and earlier work okay with this version (released prior to March 2022), but 14.10 does not (released 2022-04-19) nor do any newer versions.
Installing Docker Desktop resolves this as it provides the latest version. However using Docker Desktop introduces licensing issues. An alternative is to manually install Docker Engine / update the version downloaded by the Microsoft script.
Docker Engine builds are provided on the Moby GitHub project to download from https://download.docker.com/win/static/stable/x86_64/ downloading the lastest version from here and replacing the docker executables in C:\Windows\System32 fixes the problem, working with the latest gitlab-runner.
An alternative is to use the docker-engine chocolatey package (which incidentally I maintain) which provides installation scripting for the above stable builds:
choco install docker-engine
There is also an open issue with the Windows-Containers team to move off (out of date) nightlies: https://github.com/microsoft/Windows-Containers/issues/256 which would provide a stable docker build, through the Microsoft recommended installation method.
Was finally able to solve this issue. We had the Docker Engine installed on our GitLab Runner, but that doesn't seem to be sufficient for GitLab CI/CD. After installing Docker Desktop on the runner the issue disappeared and we were able to run the pipeline.
After some trial and error I got it up and running.
I have another server running the gitlab-runner and docker without any issues (no docker desktop installed, which is not allowed because of licensing stuff).
The server I'm trying to setup right now is a 'redundancy' build server.
So to find out what was my problem, I started switching things from one build server to the other. Currently, it appears that simply downgrading to the gitlab-runner V13.4.0 was enough.
I did reregister the runner, since gitlab stated that the V15.x.x version was using executor "unknown".
Not sure what is going on there, but at least I can continue building now.
I'm using ArangoDB 3.4.4 in a docker container (pulled from Docker Hub) and I'm attempting to implement encryption for the rocksdb engine as outlined on this page: https://docs.arangodb.com/3.4/Manual/Security/Encryption/
I've configured my docker-compose.yml file with this start up command:
command: 'arangod --rocksdb.encryption-keyfile=key.txt --server.storage-engine=rocksdb'
However it seems to ignore the --server.storage-engine flag and says it's choosing the default engine. But the larger issue is that it gives me the following error for the --rocksdb.encryption-keyfile flag:
Error while processing command-line options for arangod:
unknown option '--rocksdb.encryption-keyfile'
If I run an arangod --help command the --rocksdb.encryption-keyfile option that is shown in the documentation doesn't seem to exist. Any ideas?
The manual page you referenced states that
This feature is only available in the Enterprise Edition
As the server in your case does not understand the option, I am sure you are using the community version.
whether the server is an enterprise or a community build can be detected by running the --version command on the server executable.
This will show either "community" or "enterprise".
I am working on a windows 10 home so I have a docker toolbox and am using an IBM cloud app service : python-django app. I followed all the instructions given here:
https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin
I then open it in Pycharm (community edn) and try to build it locally by doing the following :
1)Import the settings.jar file (Given in the developer tools)
2)Tools > IBM Cloud Developer Tools > Build app in release mode
But I get the following error :
Creating image latestpy-django-tools based on Dockerfile-tools...
Building...
OK
Creating a container named 'latestpy-django-tools' from that image...
FAILED
An error Error response from daemon: invalid mode: /app was encountered while creating Docker container 'latestpy-django-tools'.
Please help!!
Kiera.k, on your Win10 system do you have Docker Toolbox or Docker for Windows? IBM Cloud Developer Tools requires Docker for Windows and will not work with Docker Toolbox.
Also, running build with the additional --trace parameter might provide some more details, if you have not already been using that. If you are using Docker for Windows, seeing all the output you get with --trace would be great.