Container can not be destroyed Web Hosting Talk

Hi,

I tried to execute vzctl destroy CTID and vzctl delete CTID. However, the following error occurred while deleting the container

vzctl destroy 200
Private area of ​​container is destroyed: / vz / private / 200
/ Vz / private / 200 can not be moved -> /vz/vztmp/vzctl-rm-me.c2yVKh: operation not allowed

If you have suggestions, please let me know.

Container can not be destroyed Web Hosting Talk

Hi,

I tried to execute vzctl destroy CTID and vzctl delete CTID. However, the following error occurred while deleting the container

vzctl destroy 200
Private area of ​​container is destroyed: / vz / private / 200
/ Vz / private / 200 can not be moved -> /vz/vztmp/vzctl-rm-me.c2yVKh: operation not allowed

If you have suggestions, please let me know.

partition – container disk1 – ask differently

I know how I did that and it was a big mistake on my part. How can I restore that? I have inserted a terminal image.
/ dev / disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme * 1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS container disk1 1000.0 GB disk0s2

/ dev / disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS container scheme – +1000.0 GB disk1
Physical storage disk0s2
1: APFS Volume Untitled 394.7 GB disk1s1
2: APFS Volume Preboot 20.7 MB disk1s2
3: APFS Volume Recovery 516.7 MB Disk1s3
4: APFS Volume VM 8.6 GB disk1s4

Docker – Connect to tightVNC in a Windows container

There are many online resources for using VNC with a Linux container, but none that I can find for Windows containers, so I thought I would try.

I can get the tightVNC server to start (authentication disabled), and the 5900 and 5800 monitoring ports are displayed in the container. However, when the client viewer attempts to connect, the best I can get is: Connection was closed properly

So I've enabled level 9 logging on the tightVNC server. Here is the section of the protocol where the incoming connection starts.

( 1808/ 1812) 2019-09-15 09:39:13:181 + Incoming rfb connection from 
192.168.1.220 to port 61860
( 1808/ 1812) 2019-09-15 09:39:13:181 ! Set socket idle timeout, 0 ms
( 1808/ 1812) 2019-09-15 09:39:13:181 ! Client #0 connected
( 1808/ 1472) 2019-09-15 09:39:13:182 - Entering RFB initialization phase 1
( 1808/ 1472) 2019-09-15 09:39:13:183   RFB initialization phase 1 completed
( 1808/ 1472) 2019-09-15 09:39:13:183   Shared flag = 0
( 1808/ 1472) 2019-09-15 09:39:13:183   Initial view-only state = 0
( 1808/ 1472) 2019-09-15 09:39:13:183   Authenticated with view-only password = 0
( 1808/ 1472) 2019-09-15 09:39:13:183 - Creating DesktopWinImpl
( 1808/ 1472) 2019-09-15 09:39:13:184   The Aero is Off
( 1808/ 1472) 2019-09-15 09:39:13:185   The console desktop has 0 displays
( 1808/ 1472) 2019-09-15 09:39:13:185 - D3D driver usage is allowed, try to start it...
( 1808/ 1508) 2019-09-15 09:39:13:186   Creating of D3D11Device
( 1808/ 1508) 2019-09-15 09:39:13:187   Creating of (0) driverType device
( 1808/ 1508) 2019-09-15 09:39:13:193   D3D11CreateDevice function was failed with code error = (-2005270524l)
( 1808/ 1508) 2019-09-15 09:39:13:194 ! Catched Exception in the Win8ScreenDriverImpl::execute() function: D3D11CreateDe
vice function was failed with code error = (-2005270524l). The exception will consider as critical
( 1808/ 1508) 2019-09-15 09:39:13:194 ! Win8ScreenDriverImpl has an invalid state. The invalid state can be a part of sc
reen propery changes. An update signal will be generated as a screen size changed signal.
( 1808/ 1508) 2019-09-15 09:39:13:194 - update detected
( 1808/ 1508) 2019-09-15 09:39:13:194   Destroy Win8DeskDuplicationThreads
( 1808/ 1472) 2019-09-15 09:39:13:195 ! The Win8 duplication api can't be used: Win8ScreenDriverImpl can't be successful
ly initialized
( 1808/ 1472) 2019-09-15 09:39:13:195 - Mirror driver usage is allowed, try to start it...
( 1808/ 1472) 2019-09-15 09:39:13:195 - Searching for Mirage Driver ...
( 1808/ 1472) 2019-09-15 09:39:13:197 ! The mirror driver factory has failed: Can't find Mirage Driver!
( 1808/ 1472) 2019-09-15 09:39:13:197 - Using the standart screen driver
( 1808/ 1472) 2019-09-15 09:39:13:201 - update detected
( 1808/ 1472) 2019-09-15 09:39:13:201   Prepare to inject the key event: vkCode = 18, release = 1, extended = 0
( 1808/ 1472) 2019-09-15 09:39:13:201   The modifier states before: m_controlIsPressed = 0; m_menuIsPressed = 0; m_delet
eIsPressed = 0; m_shiftIsPressed = 0; m_winIsPressed = 0;
( 1808/ 1472) 2019-09-15 09:39:13:201   The modifier states after: m_controlIsPressed = 0; m_menuIsPressed = 0; m_delete
IsPressed = 0; m_shiftIsPressed = 0; m_winIsPressed = 0;
( 1808/ 1776) 2019-09-15 09:39:13:201 - mouse detector thread id = 1776
( 1808/ 1776) 2019-09-15 09:39:13:201 - update detected
( 1808/  372) 2019-09-15 09:39:13:201 - mouse shape detector thread id = 372
( 1808/  608) 2019-09-15 09:39:13:201 - poller thread id = 608
( 1808/  608) 2019-09-15 09:39:13:201 - grabbing screen for polling
( 1808/  608) 2019-09-15 09:39:13:201 - end of grabbing screen for polling
( 1808/ 1472) 2019-09-15 09:39:13:201 ! exception during DesktopWinImpl creaion: Access is denied (error code 5)
( 1808/ 1088) 2019-09-15 09:39:13:201 - console poller thread id = 1088
( 1808/ 1156) 2019-09-15 09:39:13:202 - Hooks update detector thread id = 1156
( 1808/ 1156) 2019-09-15 09:39:13:202 - Try allow to receive the 0 windows message
( 1808/ 1156) 2019-09-15 09:39:13:202 - user32.dll successfully loaded.
( 1808/ 1156) 2019-09-15 09:39:13:202 - The ChangeWindowMessageFilterEx() function successfully found.
( 1808/ 1156) 2019-09-15 09:39:13:202 ! Can't allow to receive the 0 windows message by the ChangeWindowMessageFilterEx(
) function. (system error: Invalid window handle (error code 1400))
( 1808/ 1156) 2019-09-15 09:39:13:202 - Hooks update detector has been terminated.
( 1808/ 1164) 2019-09-15 09:39:13:205 - update detected
( 1808/ 1472) 2019-09-15 09:39:13:208 ! Error during RFB initialization: Access is denied (error code 5)
( 1808/ 1472) 2019-09-15 09:39:13:208 ! Connection will be closed: Access is denied (error code 5)
( 1808/ 1472) 2019-09-15 09:39:13:208 + Connection from 192.168.1.220 has been closed for client #0
( 1808/ 1792) 2019-09-15 09:39:13:209 + Connection from 192.168.1.220 has been closed for client #0

I tried both mcr.microsoft.com/windows/servercore:ltsc2019 and mcr.microsoft.com/windows:1903 Base images, and both generate the same client message and similar protocols.

I tried

  • Running the VNC server under the default ContainerAdministrator account
  • Create a new user account with admin membership and run the VNC under this account
  • --isolation process --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599 from here
  • the --gpus all Docker run option (as a guess)

But all previous hacks are unsuccessful.

I have no idea if it's even possible, but any suggestions / ideas that look in the VNC logs, what else could you try / hack?
Suggestions why the RFB init access ID was denied?

magento2 – Can not run ./provision.sh in my lxc container

When I try to execute provision.sh lxc, I get an error message

fatal: [lxc-server]: UNREACHABLE! => {"changed": false, "msg": "SSH Error: data could not be sent to remote host "magento.lxc". Make sure this host can be reached over ssh", "unreachable": true}

But I can connect to server 10.0.3.10 via ssh, and I check my known_hosts in local and at the container, and they're the same.

kubernetes – Gunicorn Flask application in the Docker container is not exposed

The application inside the container is not accessible from outside, d. H., When I lead into the docker container and do

curl localhost:5000 

It works correctly, but not in the browser of my computer. I get the error: This page can not be reached

My Dockerfile:

# Use an official Python runtime as a parent image
FROM python:3.7-slim

# Set the working directory to /app
WORKDIR /web-engine

# Copy the current directory contents into the container at /app
COPY . /web-engine

# Install Gunicorn3
RUN apt-get update && apt-get install default-libmysqlclient-dev gcc -y

# Install any needed packages specified in requirements.txt
RUN pip3 install --trusted-host pypi.python.org -r requirements.txt

# Make port 5000 available to the world outside this container
EXPOSE 5000

# Define environment variable
ENV username root

# Run app.py when the container launches
CMD gunicorn --workers 4 --bind 127.0.0.1:5000 application:app --threads 1

UPON runs Docker as follows:

sudo docker run -e password=$password -p 5000:5000 $reg/web-engine:ve0.0.2

I get the following issue:

(2019-09-08 11:53:36 +0000) (6) (INFO) Starting gunicorn 19.9.0
(2019-09-08 11:53:36 +0000) (6) (INFO) Listening at: http://127.0.0.1:5000 (6)
(2019-09-08 11:53:36 +0000) (6) (INFO) Using worker: sync
(2019-09-08 11:53:36 +0000) (9) (INFO) Booting worker with pid: 9
(2019-09-08 11:53:36 +0000) (10) (INFO) Booting worker with pid: 10
(2019-09-08 11:53:36 +0000) (11) (INFO) Booting worker with pid: 11
(2019-09-08 11:53:36 +0000) (12) (INFO) Booting worker with pid: 12

As you can see, I'm mapping port 5000 of my computer's port 5000, but localhost: 5000 is not working

That's why I tried everything the same, but with the Flask development server
with the following change in My Dockerfile

From

CMD gunicorn --workers 4 --bind 127.0.0.1:5000 application:app --threads 1

TO

CMD python3.7 application.py

and it worked; I go to localhost: 5000 and see that the application works

There is nothing wrong with the application. I assume there is a bug in the Gunicorn server

The requirements.txt file:

Flask
Flask-SQLAlchemy
mysqlclient
gunicorn
bs4
html5lib

Please help me

I also tried different forms of command combinations from Gunicorn and Docker, such as:

CMD gunicorn -application:app && sudo docker run -e password=$password -p 5000:8000 $reg/web-engine:ve0.0.2

It did not work
Terminal image of the container that works with the development server

I would be happy to see a solution with nothing but nginx, supervisor, etc

Installing Tomcat 8. * in a Docker container with Centos 7

I want to create a Docker container to install Tomcat in. It seems that my Docker is being compiled without problems and that I can run Tomcat without any problems reported through the logs. However, when I try to open tomcat, a 404 error is displayed. I do not know what I'm missing. Any ideas, please? Next is the content of my Docker file:

FROM centos:7
MAINTAINER joseccz

EXPOSE 8080
EXPOSE 8009


RUN yum install -y mc
RUN yum install -y wget
# RUN yum install -y apr-devel openssl-devel
RUN yum install -y gcc
RUN yum install epel-release -y
RUN yum install dnf -y
RUN yum install net-tools -y
RUN yum install libtool -y

ENV JAVA_HOME       /opt/javaSDK
ENV JRE_HOME        ${JAVA_HOME}/jre

ADD javaSDK ${JAVA_HOME}

ADD tomcat.service /etc/systemd/system/




# ----------------------------------------------- Copy Tomcat Files to /opt/tomcat -----------------------------------------------
ENV TOMCAT_MAJOR 8
ENV TOMCAT_VERSION 8.5.45
ENV CATALINA_HOME   /opt/tomcat

# http://www-us.apache.org/dist/tomcat/tomcat-8/v8.5.45/bin/apache-tomcat-8.5.45.tar.gz

ENV PATH        $JAVA_HOME/bin:$CATALINA_HOME/bin:$CATALINA_HOME/lib:$PATH

RUN wget http://www-us.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR}/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.tar.gz && 
 tar -xvf apache-tomcat-${TOMCAT_VERSION}.tar.gz 

RUN mv apache-tomcat-${TOMCAT_VERSION} tomcat

RUN rm apache-tomcat*.tar.gz
RUN mv tomcat /opt/tomcat
# --------------------------------------------------------------------------------------------------------------------------------



RUN groupadd tomcat
RUN useradd -s /bin/nologin -g tomcat -d /opt/tomcat tomcat

# RUN wget https://rpmfind.net/linux/mageia/distrib/cauldron/x86_64/media/core/release/tomcat-native-1.2.23-1.mga8.x86_64.rpm
# RUN rpm -i tomcat-native-1.2.23-1.mga8.x86_64.rpm

# RUN cd /opt/tomcat
RUN chgrp -R tomcat /opt/tomcat/conf
RUN chmod g+rwx /opt/tomcat/conf
RUN chmod g+r /opt/tomcat/conf/*
RUN chown -R tomcat /opt/tomcat/logs/ /opt/tomcat/temp/ /opt/tomcat/webapps/ /opt/tomcat/work/

RUN chgrp -R tomcat /opt/tomcat/bin
RUN chgrp -R tomcat /opt/tomcat/lib
RUN chmod g+rwx /opt/tomcat/bin
RUN chmod g+r /opt/tomcat/bin/*

#----------------------------------Create /opt/software folder for addinitonal soft needed by Tomcat ------------------------------
RUN mkdir /opt/software

#---------------------------------------- copy and compile Development tools ---------------------------------------------------------

RUN yum groupinstall "Development Tools" -y

#---------------------------------------- Donwload and install open ssl ------------------------------------------------------------
RUN wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz
RUN tar -xvf openssl-1.0.2l.tar.gz
RUN mv openssl-1.0.2l openssl
RUN mv openssl /opt/software/openssl
RUN cd /opt/software/openssl && ./config -fPIC --prefix=/opt/software/ --openssldir=/opt/software/ && make && make install

#---------------------------------------- Donwload and install open apr ------------------------------------------------------------
ENV APRVERSION 1.6.5
RUN wget http://apache.mirrors.ionfish.org//apr/apr-${APRVERSION}.tar.gz
RUN tar -xvf apr-${APRVERSION}.tar.gz
RUN mv apr-${APRVERSION} apr
RUN mv apr /opt/software/apr
RUN cd /opt/software/apr/ && 
    ./configure --prefix=/opt/software/ && 
     make && make install

#------------------------------------------ Copy TOMCAT native


# compiling tomcat native

RUN cd ${CATALINA_HOME}/bin/ && 
    tar -xvf tomcat-native.tar.gz && 
    cd tomcat-native-1.2.23-src/native/ && 
     ./configure --with-apr=/opt/software/ --with-java-home=/opt/javaSDK/  --with-ssl=/opt/software  --prefix=/opt/tomcat && 
    make && 
    make install

ADD setenv.sh /opt/tomcat/bin/

My setenv.sh file content is:

export JAVA_HOME=/opt/javaSDK
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CATALINA_HOME/lib
export LD_LIBRARY_PATH

Search all active / terminated Azure container instances through CLI / API?

I find it difficult to find documents or commands in the CLI to get a list of all running ACI containers that are in a resource group. Is it possible?

My scenario is to start up about 100 instances to scale the work, but when the work is done, the container is terminated (no automatic restart). When the work is 100% complete I want to delete all the groups … but I can not figure out how to get a list of all and the different states.

Ideas?