Ubuntu

Unable to deploy Ubuntu 20.04 Docker container on Google Cloud Run

你离开我真会死。 提交于 2020-12-05 11:44:54
问题 I'm trying to deploy a simple Python-based Docker container based on Ubuntu 20.04 via Google Cloud Run. I've successfully built the image, but when I try to deploy the Cloud Run service, I get the following error (project details omitted): Cloud Run error: Invalid argument error. Invalid ENTRYPOINT. [name: "gcr.io/{PROJECT_ID}/{SERVICE_NAME}@sha256:{HASH}" error: "Invalid command \"/bin/sh\": fil e not found" e not found" ]....failed Deployment failed What's strange, though, is if I pull and

Unable to deploy Ubuntu 20.04 Docker container on Google Cloud Run

孤者浪人 提交于 2020-12-05 11:43:29
问题 I'm trying to deploy a simple Python-based Docker container based on Ubuntu 20.04 via Google Cloud Run. I've successfully built the image, but when I try to deploy the Cloud Run service, I get the following error (project details omitted): Cloud Run error: Invalid argument error. Invalid ENTRYPOINT. [name: "gcr.io/{PROJECT_ID}/{SERVICE_NAME}@sha256:{HASH}" error: "Invalid command \"/bin/sh\": fil e not found" e not found" ]....failed Deployment failed What's strange, though, is if I pull and

multiple docker clients on the same machine

╄→гoц情女王★ 提交于 2020-12-05 11:37:05
问题 As I'm working with docker and docker-machine a lot, I have to work with several docker versions at the same time. And we all know how hard this can be: $ docker ps Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22) So, my question: (How) is it possible to run multiple versions of docker client on my Ubuntu 16.04? Ideally it would be to automatically select the right version, once I enter a host with docker-machine . Side note: I know

multiple docker clients on the same machine

你离开我真会死。 提交于 2020-12-05 11:36:58
问题 As I'm working with docker and docker-machine a lot, I have to work with several docker versions at the same time. And we all know how hard this can be: $ docker ps Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22) So, my question: (How) is it possible to run multiple versions of docker client on my Ubuntu 16.04? Ideally it would be to automatically select the right version, once I enter a host with docker-machine . Side note: I know

Docker: Temporary failure resolving 'deb.debian.org'

孤人 提交于 2020-12-05 05:36:38
问题 I have a Rails application that I want to deploy using Docker on an Ubuntu server. I have the Dockerfile for the application already set up, right now I want to view the nginx conf in its container. I ran the command below to start an nginx container in an interactive mode: docker run -i -t nginx:latest /bin/bash Right now I am trying to install nano editor in order to view the configuration for nginx configuration ( nginx.conf ) using the commands below: apt-get update apt-get install nano

Docker: Temporary failure resolving 'deb.debian.org'

半城伤御伤魂 提交于 2020-12-05 05:31:32
问题 I have a Rails application that I want to deploy using Docker on an Ubuntu server. I have the Dockerfile for the application already set up, right now I want to view the nginx conf in its container. I ran the command below to start an nginx container in an interactive mode: docker run -i -t nginx:latest /bin/bash Right now I am trying to install nano editor in order to view the configuration for nginx configuration ( nginx.conf ) using the commands below: apt-get update apt-get install nano

Docker: Temporary failure resolving 'deb.debian.org'

纵饮孤独 提交于 2020-12-05 05:30:42
问题 I have a Rails application that I want to deploy using Docker on an Ubuntu server. I have the Dockerfile for the application already set up, right now I want to view the nginx conf in its container. I ran the command below to start an nginx container in an interactive mode: docker run -i -t nginx:latest /bin/bash Right now I am trying to install nano editor in order to view the configuration for nginx configuration ( nginx.conf ) using the commands below: apt-get update apt-get install nano

windows和Ubuntu下安装mongodb

牧云@^-^@ 提交于 2020-12-05 00:40:02
windows 下载 mongodb官网下载压缩版安装包:下载地址: https://www.mongodb.com/download-center/community 注意选择版本(目前windows只有一个版本,同时适用于32位和64位系统) 安装 1、解压: mongodb-win32-x86_64-2008plus-ssl-4.0.4.zip 2、将文件夹改名为mongodb(文件名字太长) 3、移动文件到指定目录下,如: C:\python\soft 4、打开C:\python\soft\mongodb目录 创建data目录 5、创建日志文件 log.txt 6、使用管理员权限打开cmd命令窗口,运行如下命令,将mongodb安装为系统服务: 启动服务端 打开服务: services.msc(或者手动打开计算机管理,找到服务) 找到MongoDB 点击启动 启动客户端 打开cmd窗口启动mongodb客户端: c:\python\soft\mongodb\bin\mongo 或者将mongodb下的bin文件夹添加到环境变量,直接使用 mongo 命令启动 停止服务器 打开服务: services.msc 找到MongoDB 点击停止 ubuntu 下载 mongodb官网下载压缩版安装包: 注意选择版本(选择合适自己ubuntu版本) 安装 1、解压: tar xzf

RabbitMQ 消息队列

白昼怎懂夜的黑 提交于 2020-12-04 23:46:32
RabbitMQ是一个在AMQP基础上完整的,可复用的企业消息系统。他遵循Mozilla Public License开源协议。 MQ全称为Message Queue, 消息队列(MQ)是一种应用程序对应用程序的通信方法。应用程序通过读写出入队列的消息(针对应用程序的数据)来通信,而无需专用连接来链接它们。消息传递指的是程序之间通过在消息中发送数据进行通信,而不是通过直接调用彼此来通信,直接调用通常是用于诸如远程过程调用的技术。排队指的是应用程序通过队列来通信。队列的使用除去了接收和发送应用程序同时执行的要求。RabbitMQ可以,多个程序同时使用RabbitMQ ,但是必须队列名称不一样。采用erlang语言,属于爱立信公司开发的。 术语(Jargon) P(Producing):制造和发送信息的一方。 Queue:消息队列。 C(Consuming):接收消息的一方。 1. 安装 Ubuntu 上安装 添加源、新增公钥(不加会有警告)、更新源,安装: rabbitmq-server echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list wget -O- https://www.rabbitmq.com/rabbitmq

kali渗透综合靶机(四)--node1靶机

风格不统一 提交于 2020-12-04 18:02:52
kali渗透综合靶机(四)--node1靶机 靶机下载地址:: https://download.vulnhub.com/node/Node.ova 一、主机发现 1.netdiscover -i eth0 -r 192.168.10.0/24    二、端口扫描 1.masscan --rate=10000 -p 0-65535 192.168.10.157    三、端口服务识别 1. nmap -sV -T4 -O 192.168.10.157 -p 22,3000    四、漏洞发现 1.dirb http://192.168.10.157:3000 -f /usr/share/dirb/wordlists/big.txt 扫描目录发现,什么都没有扫描出来    2.查看页面源代码 尝试访问http://192.168.138.137:3000/api/users/latest后得到以下信息,然后解密    3. 去掉lastest再次访问 发现得到了一个管理员用户    4.登录管理员账户, 登录后发现 可以下载网站备份    5. 下载后的文件,打开发现是base64编码,尝试以base64解码后发现是zip文件,解压压缩包,提示需要密码    6. 使用kali自带的工具进行破解 fcrackzip fcrackzip -v -b -u -c a -p