docker创建Ubuntu容器,并配置aspnetcore-runtime

本例使用Ubuntu16.04

1.通过命令拉取镜像:docker pull ubuntu:16.04

2.用镜像创建容器:docker run -it -name ubuntu-nginx-16.04 ubuntu bin/bash

3.使用包管理工具安装必要包sudo ,wget

  apt-get update(该命令仅用更新apt-get工具)

  apt-get install sudo

  sudo apt-get install wget

完成上述步骤后,按照Microsoft指导文档安装运行时,地址:https://docs.microsoft.com/zh-cn/dotnet/core/install/linux-ubuntu#apt-update-sdk-or-runtime

 

 

ps:带有aspnetcore-runtime-3.1的镜像上传个人docker hub,地址:https://hub.docker.com/repository/docker/lumingking/ubuntu-core

posted @ 2020-09-30 16:12  路鸣  阅读(247)  评论(0编辑  收藏  举报