通过Docker下载并运行具有gnome支持的ubuntu-desktop [英] download and run ubuntu-desktop with gnome support via docker

查看:834
本文介绍了通过Docker下载并运行具有gnome支持的ubuntu-desktop的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对docker完全陌生。我有一个安装了docker的Redhat 7桌面。
我现在想通过docker运行完整的ubuntu-desktop 18.04(包括其gnome GUI)。如何才能做到这一点?我一直在搜索有关可以在哪里下载ubuntu 18.04 docker映像(具有GUI支持)并运行它的说明/教程,但是令人惊讶的是我找不到任何东西。有人能帮我吗?谢谢。

I am completely new to docker. I have a Redhat 7 desktop with docker installed. I now want to run a full fledged ubuntu-desktop 18.04 (including its gnome GUI) via docker. How can this be done? I have been googling for instructions/tutorials on where I can download an ubuntu 18.04 docker image (with GUI support) and run it, but surprisingly I cannot find anything. Can someone help me? Thanks.

推荐答案

这是Docker的一个非典型用例。 Docker通常用于通过命令行或在没有GUI支持的服务器上运行应用程序。 Docker映像中的大多数操作系统都没有GUI支持。

This is an atypical use case for Docker. Docker is normally used to run applications via the command line, or on a server without GUI support. Most operating systems in docker images ship without GUI support.

但是,您可以使用X11启用GUI支持。不过,仅使用支持它的容器,就我所知,并没有使用Ubuntu。有关此博客文章的更多详细信息: https://blog.jessfraz。 com / post / docker-containers-on-the-desktop /

However, you can enable GUI support with X11. Only with containers that support it though, and not with Ubuntu as far as I can tell. More details on this blog post: https://blog.jessfraz.com/post/docker-containers-on-the-desktop/

现在,只需运行 docker run -it- rm ubuntu:latest bash ,您将启动Ubuntu 18.04 shell(在撰写本文时)。

For now, just run docker run -it --rm ubuntu:latest bash and you'll launch an Ubuntu 18.04 shell (at the time of this post).

这篇关于通过Docker下载并运行具有gnome支持的ubuntu-desktop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆