zoukankan      html  css  js  c++  java
  • 做自己的docker镜像(基于ubuntu:16.04)

    基于ubuntu:16.04

    apt-get update -y 
    apt-get install sudo -y

    换源

    sudo apt-get install vim
    sudo vim /etc/apt/sources.list

    内容全部替换成

    deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
    sudo apt-get update
    sudo apt-get upgrade

    安装python

    sudo apt-get install python -y
    sudo apt-get install python3-pip
    pip3 install meson
    sudo apt-get install autoconf automake libtool
    sudo apt-get install libffi-dev libexpat1-dev libpciaccess-dev libxml2-dev bison flex
    sudo apt-get install xutils-dev
    sudo apt-get install zlib1g-dev
    sudo apt-get install ninja-build

    如果遇到

    E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

    sudo rm /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock
  • 相关阅读:
    Mysql基本操作、C++Mysql简单应用、PythonMysql简单应用
    Mysql安装步骤
    MVC EF 移除建表时自动加上s的复数形式
    MVC autofac 属性注入
    layui table默认选中指定行
    js slice 假分页
    sql 根据身份证号码计算年龄
    pointer-events: none
    /Date(1555554794000)/ 转换为日期格式
    sql 查询字段如果为null 则返回0的写法
  • 原文地址:https://www.cnblogs.com/clemente/p/10683581.html
Copyright © 2011-2022 走看看