Good night
Cannot open snap's installed applications in a virtual sessionIn some cases, applications installed by snap cannot be started inside a virtual session, or even locally. Error is similar to:/user.slice/user-1000489.slice/session-c3.scope is not a snap cgroupThis problem occurs on different Linux distributions, in particular it has been reported to NoMachine for Xubuntu 22.04 and Ubuntu 22.04, and doesn't seem to depend on the desktop environment.A possible workaround, tested on Ubuntu 22.04 and
单节点,非集群docker pull zookeeper:3.9目录树zookeeper ├─ config │ └─ zoo.cfg ├─ data ├─ docker-compose.yml └─ logs单节点配置docker-compose.ymlversion: '3' services: zookeeper: image: zookeeper restart: always container_name: zookeeper volumes: - ./config:/conf - ./data:/data - ./logs:/datalog ports: - "2181:2181"zoo.cfg配置dataDir=/data dataLogDir=/datalog tickTime=2000 initLimit=5 syncLimit=2 autopurge.snapRetainCount=3 autopurge.purgeInterval=0 maxClientCnxns=10
下载镜像docker pull v2raya/v2raya启动命令docker run -d --restart=always --privileged --network=host --name v2raya -e V2RAYA_LOG_FILE=/tmp/v2raya.log -e V2RAYA_V2RAY_BIN=/usr/bin/v2ray v2raya/v2raya规则配置端口配置Ubuntu 桌面代理配置
删除旧版 dockerapt remove -y docker docker-engine docker.io containerd runc更新包apt update安装依赖apt install ca-certificates curl gnupg lsb-release -y添加Docker官方GPG密钥国内:curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | apt-key add - # 出现错误,则执行 curl -s http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/NAME.gpg --import添加Docker软件源add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu
介绍Dockerfile 是一个用来构建镜像的文本文件,文本内容包含一条条构建镜像所需的指令和说明。# 是 Dockerfile 中的注释Dockerfile 基本结构:基础镜像、镜像元信息、镜像操作指令、容器启动时执行命令。Docker 自上而下顺序执行 Dockerfile 的指令,文件命名 Dockerfile。Dockerfile 指令FROM指定基础镜像,必须是第一条指令。用法:FROM image FROM image:<tag> # tag 是可选项,默认值 latestRUN运行指定的命令用法:RUN <command> RUN ["executable", "param1", "param2"] # 第一种后面直接跟shell 命令 # Linux 默认:/bin/sh -c # windows 默认:cmd /S /C # 第二种类似于函数调用 # executable 相当于 可执行文件,param* 是两个参数 # 举例: RUN /bin/bash -c source $HOM