mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
system: linux-container: Recommend guix container.
* gnu/system/linux-container.scm (container-script)[script]: Recommend using 'guix container' to get a shell inside the running container.
This commit is contained in:
parent
837da4d36e
commit
c27710859c
1 changed files with 6 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
||||
;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2019 Arun Isaac <arunisaac@systemreboot.net>
|
||||
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -194,11 +195,13 @@ (define file-systems
|
|||
(define (explain pid)
|
||||
;; XXX: We can't quite call 'bindtextdomain' so there's actually
|
||||
;; no i18n.
|
||||
;; XXX: Should we really give both options? 'guix container exec'
|
||||
;; is a more verbose command. Hard to fail to enter the container
|
||||
;; when we list two options.
|
||||
(info (G_ "system container is running as PID ~a~%") pid)
|
||||
;; XXX: Should we recommend 'guix container exec'? It's more
|
||||
;; verbose and doesn't bring much.
|
||||
(info (G_ "Run 'sudo nsenter -a -t ~a' to get a shell into it.~%")
|
||||
(info (G_ "Run 'sudo guix container exec ~a /run/current-system/profile/bin/bash --login'\n")
|
||||
pid)
|
||||
(info (G_ "or run 'sudo nsenter -a -t ~a' to get a shell into it.~%") pid)
|
||||
(newline (guix-warning-port)))
|
||||
|
||||
(call-with-container file-systems
|
||||
|
|
Loading…
Reference in a new issue