devilbox/docs/howto/uid-and-gid/find-uid-and-gid-on-mac.rst

54 lines
968 B
ReStructuredText
Raw Normal View History

2018-07-03 13:47:58 +00:00
:orphan:
.. include:: /_includes/snippets/__ANNOUNCEMENTS__.rst
2018-07-03 13:47:58 +00:00
.. _howto_find_uid_and_gid_on_mac:
***************************************
Find your user id and group id on MacOS
***************************************
**Table of Contents**
.. contents:: :local:
Docker for Mac vs Docker Toolbox
================================
Docker for Mac
--------------
On Docker for Mac (native Docker) you can open up any terminal you prefer, there are no other
requirements.
Docker Toolbox
--------------
On Docker Toolbox it is important that you open up a Docker environment prepared terminal window.
.. seealso::
* :ref:`howto_open_terminal_on_mac`
Find uid and gid
================
Open the correct terminal as described above and type the following commands:
Find your user id (``uid``)
---------------------------
.. code-block:: bash
host> id -u
Find your group id (``gid``)
----------------------------
.. code-block:: bash
host> id -g