当前位置: 首页 > news >正文

Ubuntu VSCode Docker 权限

文章目录

  • 报错 permission denied
  • 处理

报错 permission denied

ERROR: permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission deniedThe terminal process "/usr/bin/bash '-c', 'docker build --pull --rm -f "Dockerfile" -t 4dsegment3:jzheng0 "."'" failed to launch (exit code: 1).
Terminal will be reused by tasks, press any key to close it.

处理

The error message indicates that your user does not have the necessary permissions to access the Docker daemon. To resolve this, you can add your user to the docker group and then restart your session. Here are the steps:

Add your user to the docker group:

sudo usermod -aG docker $USER

Restart your session:

Log out and log back in, or
Restart your computer, or
Use the following command to start a new shell with the updated group

newgrp docker

membership:
After performing these steps, try running the docker build command again.


http://www.mrgr.cn/news/40073.html

相关文章:

  • 深入浅出MySQL事务处理:从基础概念到ACID特性及并发控制
  • YOLO11震撼发布!
  • ubuntu server 常用配置
  • “顶级”面试官告诉你 这些Java 面试问题一定有
  • Windows环境Apache httpd 2.4 web服务器加载PHP8:Hello,world!
  • 【微服务】前端微服务qiankun 2.x主子应用通信代码片段
  • SystemC学习(一)——环境安装
  • 软件设计师——计算机网络
  • 两个示例分析系统优化的选择
  • 【微信小程序前端开发】入门Day01 —— 小程序页面组成、组件使用及协同开发发布指南
  • 解决$‘r‘ command not found或者文件夹显示’tvsf 33‘$‘r‘
  • USB 3.1 标准 A 型插头到 USB 3.1 Micro-B 型插头电缆组件的电线连接
  • 裸金属服务器与虚拟机、物理机区别
  • 2024年9月30日随笔
  • mobile_aloha训练过程中pycharm编辑器遇到的问题记录
  • 【编程小白必看】MySQL 聚合函数操作秘籍一文全掌握
  • 非常全面的中考总复习资料-快速提升中考成绩!
  • 【刷点笔试面试题试试水】#ifndef和#ifdef有什么区别?
  • 单臂路由详解
  • PCL库简单NDT算法配准