Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Fedora 31 Essentials

You're reading from   Fedora 31 Essentials Learn how to install, administer, and deploy Fedora 31 systems

Arrow left icon
Product type Paperback
Published in Apr 2020
Publisher Packt
ISBN-13 9781800562790
Length 271 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Neil Smyth Neil Smyth
Author Profile Icon Neil Smyth
Neil Smyth
Arrow right icon
View More author details
Toc

Table of Contents (32) Chapters Close

1. Introduction 2. A Brief History of Linux FREE CHAPTER 3. Installing Fedora 31 on a Clean Disk Drive 4. Dual Booting Fedora 31 with Windows 5. Allocating Windows Disk Partitions to Fedora 31 6. A Guided Tour of the GNOME 3 Desktop 7. An Overview of the Fedora 31 Cockpit Web Interface 8. Using the Bash Shell on Fedora 31 9. Managing Fedora 31 Users and Groups 10. Understanding Fedora 31 Software Installation and Management 11. Configuring Fedora 31 systemd Units 12. Fedora 31 Network Management 13. Basic Fedora 31 Firewall Configuration with firewalld 14. Configuring SSH Key-based Authentication on Fedora 31 15. Fedora 31 Remote Desktop Access with VNC 16. Displaying Fedora 31 Applications Remotely (X11 Forwarding) 17. Using NFS to Share Fedora 31 Files with Remote Systems 18. Sharing Files between Fedora 31 and Windows Systems with Samba 19. An Overview of Virtualization Techniques 20. Installing KVM Virtualization on Fedora 31 21. Creating KVM Virtual Machines using Cockpit and virt-manager 22. Creating KVM Virtual Machines with virt-install and virsh 23. Creating a Fedora 31 KVM Networked Bridge Interface 24. Managing KVM using the virsh Command-Line Tool 25. An Introduction to Linux Containers 26. Working with Containers on Fedora 31 27. Setting Up a Fedora 31 Web Server 28. Configuring a Fedora 31 Postfix Email Server 29. Adding a New Disk Drive to a Fedora 31 System 30. Adding a New Disk to a Fedora 31 Volume Group and Logical Volume 31. Adding and Managing Fedora 31 Swap Space Index

26.3 Running the Image in a Container

The image pulled from the registry is a fully operational image that is ready to run in a container without modification. To run the image, use the podman run command. In this case the –rm option will be specified to indicate that we want to run the image in a container, execute one command and then have the container exit. In this case, the cat tool will be used to output the content of the /etc/passwd file located on the container root filesystem:

$ podman run --rm fedora:latest cat /etc/passwd

root:x:0:0:root:/root:/bin/bash

bin:x:1:1:bin:/bin:/sbin/nologin

daemon:x:2:2:daemon:/sbin:/sbin/nologin

adm:x:3:4:adm:/var/adm:/sbin/nologin

lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin

sync:x:5:0:sync:/sbin:/bin/sync

shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

halt:x:7:0:halt:/sbin:/sbin/halt

mail:x:8:12:mail:/var/spool/mail:/sbin/nologin

operator:x:11:0:operator:/root:/sbin/nologin

games:x:12:100:games:/usr/games...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image