mirror of
https://github.com/cytopia/devilbox.git
synced 2025-06-23 01:18:56 +00:00
Documentation restructuring
This commit is contained in:
95
docs/howto/terminal/open-terminal-on-mac.rst
Normal file
95
docs/howto/terminal/open-terminal-on-mac.rst
Normal file
@ -0,0 +1,95 @@
|
||||
:orphan:
|
||||
|
||||
.. include:: ../../_includes/global/links.rst
|
||||
|
||||
.. _howto_open_terminal_on_mac:
|
||||
|
||||
************************
|
||||
Open a terminal on MacOS
|
||||
************************
|
||||
|
||||
.. seealso:: :ref:`howto_open_terminal_on_win`
|
||||
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
.. contents:: :local:
|
||||
|
||||
|
||||
Docker for Mac
|
||||
==============
|
||||
|
||||
Docker for Mac (the native Docker implementation) does not have any special requirements for
|
||||
initial environment variable setup. Simply open your terminal of choice from the **Launchpad**
|
||||
(``Terminal.app`` or ``iTerm.app``).
|
||||
|
||||
.. seealso:: |ext_lnk_install_docker_mac|
|
||||
|
||||
Docker Toolbox
|
||||
==============
|
||||
|
||||
Docker Toolbox provides a launcher to open an environment prepared terminal, but you can also do
|
||||
it manually with a terminal of your choice.
|
||||
|
||||
Via Launcher
|
||||
------------
|
||||
|
||||
1. Open the **Launchpad** and locate the Docker Quickstart Terminal icon.
|
||||
|
||||
.. include:: ../../_includes/figures/terminal/docker-toolbox-terminal-mac-quickstart-launchpad.rst
|
||||
|
||||
2. Click the icon to launch a Docker Quickstart Terminal window.
|
||||
|
||||
The terminal does a number of things to set up Docker Quickstart Terminal for you.
|
||||
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
Last login: Sat Jul 11 20:09:45 on ttys002
|
||||
bash '/Applications/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
|
||||
Get http:///var/run/docker.sock/v1.19/images/json?all=1&filters=%7B%22dangling%22%3A%5B%22true%22%5D%7D: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
|
||||
Get http:///var/run/docker.sock/v1.19/images/json?all=1: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
|
||||
-bash: lolcat: command not found
|
||||
|
||||
mary at meepers in ~
|
||||
$ bash '/Applications/Docker Quickstart Terminal.app/Contents/Resources/Scripts/start.sh'
|
||||
Creating Machine dev...
|
||||
Creating VirtualBox VM...
|
||||
Creating SSH key...
|
||||
Starting VirtualBox VM...
|
||||
Starting VM...
|
||||
To see how to connect Docker to this machine, run: docker-machine env dev
|
||||
Starting machine dev...
|
||||
Setting environment variables for machine dev...
|
||||
|
||||
## .
|
||||
## ## ## ==
|
||||
## ## ## ## ## ===
|
||||
/"""""""""""""""""\___/ ===
|
||||
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
|
||||
\______ o __/
|
||||
\ \ __/
|
||||
\____\_______/
|
||||
|
||||
The Docker Quick Start Terminal is configured to use Docker with the "default" VM.
|
||||
|
||||
|
||||
You can now use this terminal window to apply all your Docker and Devilbox related commands.
|
||||
|
||||
|
||||
Different terminal
|
||||
------------------
|
||||
|
||||
If you rather want to use a different terminal, you can accomplish the same behaviour.
|
||||
|
||||
1. Open your terminal of choice
|
||||
2. Type the following to prepare environment variables
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$(docker-machine env default)
|
||||
|
||||
You can now use this terminal window to apply all your Docker and Devilbox related commands.
|
||||
|
||||
|
||||
.. seealso:: |ext_lnk_install_docker_toolbox_mac|
|
56
docs/howto/terminal/open-terminal-on-win.rst
Normal file
56
docs/howto/terminal/open-terminal-on-win.rst
Normal file
@ -0,0 +1,56 @@
|
||||
:orphan:
|
||||
|
||||
.. include:: ../../_includes/global/links.rst
|
||||
|
||||
.. _howto_open_terminal_on_win:
|
||||
|
||||
**************************
|
||||
Open a terminal on Windows
|
||||
**************************
|
||||
|
||||
.. seealso:: :ref:`howto_open_terminal_on_mac`
|
||||
|
||||
|
||||
**Table of Contents**
|
||||
|
||||
.. contents:: :local:
|
||||
|
||||
|
||||
Docker for Windows
|
||||
==================
|
||||
|
||||
Docker for Windows (the native Docker implementation) does not have any special requirements for
|
||||
initial environment variable setup. Simply open either
|
||||
|
||||
* Command Prompt
|
||||
* PowerShell
|
||||
|
||||
|
||||
.. important:: Do not open **PowerShell ISE**
|
||||
|
||||
.. seealso:: |ext_lnk_install_docker_win|
|
||||
|
||||
|
||||
Docker Toolbox
|
||||
==============
|
||||
|
||||
1. On your Desktop, find the Docker QuickStart Terminal icon.
|
||||
|
||||
.. include:: ../../_includes/figures/terminal/docker-toolbox-terminal-win-quickstart-shortcut.rst
|
||||
|
||||
2. Click the Docker QuickStart icon to launch a pre-configured Docker Toolbox terminal.
|
||||
|
||||
If the system displays a **User Account Control** prompt to allow VirtualBox to make changes to
|
||||
your computer. Choose **Yes**.
|
||||
|
||||
.. include:: ../../_includes/figures/terminal/docker-toolbox-terminal-win-quickstart-terminal.rst
|
||||
|
||||
..
|
||||
|
||||
The terminal runs a special bash environment instead of the standard Windows command prompt.
|
||||
The bash environment is required by Docker.
|
||||
|
||||
|
||||
You can now use this terminal window to apply all your Docker and Devilbox related commands.
|
||||
|
||||
.. seealso:: |ext_lnk_install_docker_toolbox_win|
|
Reference in New Issue
Block a user