Adding sed for GitHub Markdown
Moving from index.md to kitmatic-overview
Updating image to pull

Signed-off-by: Mary Anthony <mary@docker.com>
This commit is contained in:
Mary Anthony 2015-06-07 17:40:34 -07:00
Родитель ba2b3a8fc2
Коммит bf7821b493
39 изменённых файлов: 183 добавлений и 86 удалений

Просмотреть файл

@ -2,7 +2,7 @@
[![bitHound Score](https://www.bithound.io/github/kitematic/kitematic/badges/score.svg)](https://www.bithound.io/github/kitematic/kitematic) [![bitHound Score](https://www.bithound.io/github/kitematic/kitematic/badges/score.svg)](https://www.bithound.io/github/kitematic/kitematic)
![Kitematic Logo](https://cloud.githubusercontent.com/assets/251292/5269258/1b229c3c-7a2f-11e4-96f1-e7baf3c86d73.png) ![Kitematic Logo](https://cloud.githubusercontent.com/images/251292/5269258/1b229c3c-7a2f-11e4-96f1-e7baf3c86d73.png)
Kitematic is a simple application for managing Docker containers on Mac OS X and Windows (coming soon). Kitematic is a simple application for managing Docker containers on Mac OS X and Windows (coming soon).

Просмотреть файл

@ -1,17 +1,24 @@
FROM docs/base:latest FROM docs/base:hugo
MAINTAINER Sven Dowideit <SvenDowideit@docker.com> (@SvenDowideit) MAINTAINER Mary Anthony <mary@docker.com> (@moxiegirl)
# to get the git info for this repo # to get the git info for this repo
COPY . /src COPY . /src
# Reset the /docs dir so we can replace the theme meta with the new repo's git info COPY . /docs/content/kitematic/
#RUN git reset --hard
RUN grep '"version"' /src/package.json | sed 's/.*"version": "\(.*\)".*/\1/' > /docs/VERSION # Sed to process GitHub Markdown
COPY docs/* /docs/sources/kitematic/ # 1-2 Remove comment code from metadata block
# sadly, COPY is only recursive if you don't also need to name the destination # 3 Remove .md extension from link text
COPY docs/assets/ /docs/sources/kitematic/assets/ # 4 Change ](/ to ](/project/ in links
COPY docs/mkdocs.yml /docs/mkdocs-dhe.yml # 5 Change ](word) to ](/project/word)
# 6 Change ](../../ to ](/project/
# Then build everything together, ready for mkdocs # 7 Change ](../ to ](/project/word)
RUN /docs/build.sh #
#
RUN find /docs/content/kitematic -type f -name "*.md" -exec sed -i.old \
-e '/^<!.*metadata]>/g' \
-e '/^<!.*end-metadata.*>/g' \
-e 's/\([(]\)\(.*\)\(\.md\)/\1\2/g' \
-e 's/\(\]\)\([(]\)\(\/\)/\1\2\/kitematic\//g' \
-e 's/\(\][(]\)\([A-z]*[)]\)/\]\(\/kitematic\/\2/g' \
-e 's/\(\][(]\)\(\.\.\/\)/\1\/kitematic\//g' {} \;

55
docs/Makefile Normal file
Просмотреть файл

@ -0,0 +1,55 @@
.PHONY: all binary build cross default docs docs-build docs-shell shell test test-unit test-integration test-integration-cli test-docker-py validate
# env vars passed through directly to Docker's build scripts
# to allow things like `make DOCKER_CLIENTONLY=1 binary` easily
# `docs/sources/contributing/devenvironment.md ` and `project/PACKAGERS.md` have some limited documentation of some of these
DOCKER_ENVS := \
-e BUILDFLAGS \
-e DOCKER_CLIENTONLY \
-e DOCKER_EXECDRIVER \
-e DOCKER_GRAPHDRIVER \
-e TESTDIRS \
-e TESTFLAGS \
-e TIMEOUT
# note: we _cannot_ add "-e DOCKER_BUILDTAGS" here because even if it's unset in the shell, that would shadow the "ENV DOCKER_BUILDTAGS" set in our Dockerfile, which is very important for our official builds
# to allow `make DOCSDIR=docs docs-shell` (to create a bind mount in docs)
DOCS_MOUNT := $(if $(DOCSDIR),-v $(CURDIR)/$(DOCSDIR):/$(DOCSDIR))
# to allow `make DOCSPORT=9000 docs`
DOCSPORT := 8000
# Get the IP ADDRESS
DOCKER_IP=$(shell python -c "import urlparse ; print urlparse.urlparse('$(DOCKER_HOST)').hostname or ''")
HUGO_BASE_URL=$(shell test -z "$(DOCKER_IP)" && echo localhost || echo "$(DOCKER_IP)")
HUGO_BIND_IP=0.0.0.0
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD 2>/dev/null)
DOCKER_IMAGE := docker$(if $(GIT_BRANCH),:$(GIT_BRANCH))
DOCKER_DOCS_IMAGE := docs-base$(if $(GIT_BRANCH),:$(GIT_BRANCH))
DOCKER_RUN_DOCS := docker run --rm -it $(DOCS_MOUNT) -e AWS_S3_BUCKET -e NOCACHE
# for some docs workarounds (see below in "docs-build" target)
GITCOMMIT := $(shell git rev-parse --short HEAD 2>/dev/null)
default: docs
docs: docs-build
$(DOCKER_RUN_DOCS) -p $(if $(DOCSPORT),$(DOCSPORT):)8000 -e DOCKERHOST "$(DOCKER_DOCS_IMAGE)" hugo server --port=$(DOCSPORT) --baseUrl=$(HUGO_BASE_URL) --bind=$(HUGO_BIND_IP)
docs-draft: docs-build
$(DOCKER_RUN_DOCS) -p $(if $(DOCSPORT),$(DOCSPORT):)8000 -e DOCKERHOST "$(DOCKER_DOCS_IMAGE)" hugo server --buildDrafts="true" --port=$(DOCSPORT) --baseUrl=$(HUGO_BASE_URL) --bind=$(HUGO_BIND_IP)
docs-shell: docs-build
$(DOCKER_RUN_DOCS) -p $(if $(DOCSPORT),$(DOCSPORT):)8000 "$(DOCKER_DOCS_IMAGE)" bash
docs-build:
# ( git remote | grep -v upstream ) || git diff --name-status upstream/release..upstream/docs ./ > ./changed-files
# echo "$(GIT_BRANCH)" > GIT_BRANCH
# echo "$(AWS_S3_BUCKET)" > AWS_S3_BUCKET
# echo "$(GITCOMMIT)" > GITCOMMIT
docker build -t "$(DOCKER_DOCS_IMAGE)" .

Просмотреть файл

@ -1,9 +1,16 @@
page_title: Kitematic: Frequently Asked Questions <!--[metadata]>
page_description: Documentation covering common questions users have about Kitematic +++
page_keywords: docker, documentation, about, technology, kitematic, gui title = "Frequently Asked Questions"
description = "Documentation covering common questions users have about Kitematic"
keywords = ["docker, documentation, about, technology, kitematic, gui"]
[menu.main]
parent="smn_workw_kitematic"
weight=5
+++
<![end-metadata]-->
# Frequently Asked Questions # Kitematic: Frequently Asked Questions
### Is Kitematic Open Source? ### Is Kitematic Open Source?

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 162 KiB

После

Ширина:  |  Высота:  |  Размер: 162 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 118 KiB

После

Ширина:  |  Высота:  |  Размер: 118 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 166 KiB

После

Ширина:  |  Высота:  |  Размер: 166 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 120 KiB

После

Ширина:  |  Высота:  |  Размер: 120 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 112 KiB

После

Ширина:  |  Высота:  |  Размер: 112 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 161 KiB

После

Ширина:  |  Высота:  |  Размер: 161 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 137 KiB

После

Ширина:  |  Высота:  |  Размер: 137 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 121 KiB

После

Ширина:  |  Высота:  |  Размер: 121 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 405 KiB

После

Ширина:  |  Высота:  |  Размер: 405 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 565 KiB

После

Ширина:  |  Высота:  |  Размер: 565 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 454 KiB

После

Ширина:  |  Высота:  |  Размер: 454 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 240 KiB

После

Ширина:  |  Высота:  |  Размер: 240 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 556 KiB

После

Ширина:  |  Высота:  |  Размер: 556 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 567 KiB

После

Ширина:  |  Высота:  |  Размер: 567 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 124 KiB

После

Ширина:  |  Высота:  |  Размер: 124 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 118 KiB

После

Ширина:  |  Высота:  |  Размер: 118 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 102 KiB

После

Ширина:  |  Высота:  |  Размер: 102 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 162 KiB

После

Ширина:  |  Высота:  |  Размер: 162 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 74 KiB

После

Ширина:  |  Высота:  |  Размер: 74 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 125 KiB

После

Ширина:  |  Высота:  |  Размер: 125 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 69 KiB

После

Ширина:  |  Высота:  |  Размер: 69 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 114 KiB

После

Ширина:  |  Высота:  |  Размер: 114 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 172 KiB

После

Ширина:  |  Высота:  |  Размер: 172 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 160 KiB

После

Ширина:  |  Высота:  |  Размер: 160 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 164 KiB

После

Ширина:  |  Высота:  |  Размер: 164 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 80 KiB

После

Ширина:  |  Высота:  |  Размер: 80 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 178 KiB

После

Ширина:  |  Высота:  |  Размер: 178 KiB

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 164 KiB

После

Ширина:  |  Высота:  |  Размер: 164 KiB

Просмотреть файл

@ -1,8 +1,15 @@
page_title: Kitematic User Guide: Intro & Overview <!--[metadata]>
page_description: Documentation that provides an overview of Kitematic and installation instructions +++
page_keywords: docker, documentation, about, technology, kitematic, gui title = "Kitematic"
description = "Documentation that provides an overview of Kitematic and installation instructions"
keywords = ["docker, documentation, about, technology, kitematic, gui"]
[menu.main]
parent="mn_install"
weight=2
+++
<![end-metadata]-->
# Installing Kitematic # Kitematic: Install Kitematic
You install Kitematic much the same way you install any application on a Mac or You install Kitematic much the same way you install any application on a Mac or
Windows PC: download an image and run an installer. Windows PC: download an image and run an installer.
@ -19,12 +26,12 @@ Opening Kitematic for the first time sets up everything you need to run Docker
containers. If you don't already have VirtualBox installed, Kitematic will containers. If you don't already have VirtualBox installed, Kitematic will
download and install the latest version. download and install the latest version.
![Installing](./assets/installing.png) ![Installing](../images/installing.png)
All Done! Within a minute you should be ready to start running your first All Done! Within a minute you should be ready to start running your first
container! container!
![containers](./assets/containers.png) ![containers](../images/containers.png)
## Technical Details ## Technical Details
@ -44,4 +51,4 @@ Kitematic needs your root password for two reasons:
## Next Steps ## Next Steps
For information about using Kitematic, take a look at the [User Guide](./userguide.md). For information about using Kitematic, take a look at the [User Guide](../userguide).

Просмотреть файл

@ -1,8 +1,15 @@
page_title: Kitematic Known Issues <!--[metadata]>
page_description: Information about known issues in Kitematic +++
page_keywords: docker, documentation, about, technology, kitematic, gui title = "Known Issues"
description = "Information about known issues in Kitematic"
keywords = ["docker, documentation, about, technology, kitematic, gui"]
[menu.main]
parent="smn_workw_kitematic"
weight=5
+++
<![end-metadata]-->
# Known Issues # Kitematic: Known Issues
Kitematic is in beta, so we're still working out the kinks. The most common Kitematic is in beta, so we're still working out the kinks. The most common

Просмотреть файл

@ -1,6 +1,13 @@
page_title: Kitematic Tutorial: Set up a Minecraft Server <!--[metadata]>
page_description: Tutorial demonstrating the setup of a Minecraft server using Docker and Kitematic +++
page_keywords: docker, documentation, about, technology, kitematic, gui, minecraft, tutorial title = "Set up a Minecraft Server"
description = "Tutorial demonstrating the setup of a Minecraft server using Docker and Kitematic"
keywords = ["docker, documentation, about, technology, kitematic, gui, minecraft, tutorial"]
[menu.main]
parent="smn_workw_kitematic"
weight=2
+++
<![end-metadata]-->
# Kitematic tutorial: Set up a Minecraft server # Kitematic tutorial: Set up a Minecraft server
@ -10,12 +17,12 @@ using Kitematic and Docker.
### Create Minecraft Server Container ### Create Minecraft Server Container
First, if you haven't yet done so, [download and start First, if you haven't yet done so, [download and start
Kitematic](./index.md). Once installed and running, the app should look like this: Kitematic](./kitematic-overview.md). Once installed and running, the app should look like this:
Create a container from the recommended Minecraft image by clicking the "Create" Create a container from the recommended Minecraft image by clicking the "Create"
button. button.
![create Minecraft container](../assets/minecraft-create.png) ![create Minecraft container](../images/minecraft-create.png)
After the image finishes downloading, you'll see the home screen for the After the image finishes downloading, you'll see the home screen for the
Minecraft container. Your Minecraft server is now up and running inside a Docker Minecraft container. Your Minecraft server is now up and running inside a Docker
@ -23,24 +30,24 @@ container. Note that we've marked the IP and port you can use to connect to
your Minecraft server in red (your IP and port may be different from what's your Minecraft server in red (your IP and port may be different from what's
shown). shown).
![Minecraft server port and IP info](../assets/minecraft-port.png) ![Minecraft server port and IP info](../images/minecraft-port.png)
### Connect to Minecraft server ### Connect to Minecraft server
Open your Minecraft client, log in with your Minecraft account and click on the Open your Minecraft client, log in with your Minecraft account and click on the
"Multiplayer" button. "Multiplayer" button.
![Minecraft login screen](../assets/minecraft-login.png) ![Minecraft login screen](../images/minecraft-login.png)
Click the "Add Server" button to add the Minecraft server you want to connect Click the "Add Server" button to add the Minecraft server you want to connect
to. to.
![Add server](../assets/minecraft-login.png) ![Add server](../images/minecraft-login.png)
Fill in the "Server Address" text box with the marked IP and port from Kitematic Fill in the "Server Address" text box with the marked IP and port from Kitematic
you saw earlier. you saw earlier.
![Minecraft server address](../assets/minecraft-server-address.png) ![Minecraft server address](../images/minecraft-server-address.png)
Click on the play button to connect to your Minecraft server and enjoy! Click on the play button to connect to your Minecraft server and enjoy!
@ -51,16 +58,16 @@ Open the "data" folder from Kitematic (You'll need to "Enable all volumes to edi
files via Finder"). We use Docker Volume to map the folder from the Minecraft files via Finder"). We use Docker Volume to map the folder from the Minecraft
Docker container onto your computer. Docker container onto your computer.
![Minecraft data volume](../assets/minecraft-data-volume.png) ![Minecraft data volume](../images/minecraft-data-volume.png)
The Finder will open, allowing you to replace your current map with the new one The Finder will open, allowing you to replace your current map with the new one
you desire. you desire.
![Minecraft maps](../assets/minecraft-map.png) ![Minecraft maps](../images/minecraft-map.png)
Restart your container by clicking the "Restart" button. Restart your container by clicking the "Restart" button.
![Restart Minecraft container](../assets/minecraft-restart.png) ![Restart Minecraft container](../images/minecraft-restart.png)
Go back to your Minecraft client and join your server. The new map should load. Go back to your Minecraft client and join your server. The new map should load.

Просмотреть файл

@ -1,13 +0,0 @@
# Kitematic
- ['kitematic/index.md', 'Installation', 'Kitematic on OS X']
- ['kitematic/userguide.md', 'User Guide', 'Kitematic']
- ['kitematic/minecraft-server.md', 'Examples', 'Kitematic: Minecraft server']
- ['kitematic/nginx-web-server.md', 'Examples', 'Kitematic: Ngnix web server']
- ['kitematic/rethinkdb-dev-database.md', 'Examples', 'Kitematic: RethinkDB development database']
- ['kitematic/faq.md', 'Reference', 'Kitematic: FAQ']
- ['kitematic/known-issues.md', 'Reference', 'Kitematic: Known issues']

Просмотреть файл

@ -1,8 +1,15 @@
page_title: Kitematic Tutorial: Set up an Nginx web server <!--[metadata]>
page_description: Tutorial demonstrating the setup of an Nginx web server using Docker and Kitematic +++
page_keywords: docker, documentation, about, technology, kitematic, gui, nginx, tutorial title = "Set up an Nginx web server"
description = "Tutorial demonstrating the setup of an Nginx web server using Docker and Kitematic"
keywords = ["docker, documentation, about, technology, kitematic, gui, nginx, tutorial"]
[menu.main]
parent="smn_workw_kitematic"
weight=1
+++
<![end-metadata]-->
# Serving a Static Website with Nginx # Kitematic Tutorial: Serving a Static Website with Nginx
In this tutorial, you will: In this tutorial, you will:
@ -13,26 +20,26 @@ In this tutorial, you will:
In this example website we'll be serving the popular 2048 game, as shown below. In this example website we'll be serving the popular 2048 game, as shown below.
Let's get to it! Let's get to it!
![2048 game](../assets/nginx-2048.png) ![2048 game](../images/nginx-2048.png)
#### Running the Nginx Web Server Container #### Running the Nginx Web Server Container
First, if you haven't yet done so, [download and start First, if you haven't yet done so, [download and start
Kitematic](./index.md). Once installed and running, the app should look like this: Kitematic](./kitematic-overview.md). Once installed and running, the app should look like this:
![Nginx create](../assets/nginx-create.png) ![Nginx create](../images/nginx-create.png)
Click on the _Create_ button of the `hello-world-nginx` listing as shown above. Click on the _Create_ button of the `hello-world-nginx` listing as shown above.
Kitematic will download (also known as pull the image) and then run a tiny Nginx web server Kitematic will download (also known as pull the image) and then run a tiny Nginx web server
in a Docker container, allowing it to serve website data to your Mac. in a Docker container, allowing it to serve website data to your Mac.
![download Nginx hello world](../assets/nginx-hello-world.png) ![download Nginx hello world](../images/nginx-hello-world.png)
Once it's done downloading you should see a quick preview of the example website Once it's done downloading you should see a quick preview of the example website
that comes with the container, as shown below. Click on the preview to see the that comes with the container, as shown below. Click on the preview to see the
result in your own browser. result in your own browser.
![Nginx preview](../assets/nginx-preview.png) ![Nginx preview](../images/nginx-preview.png)
**What just happened?** Kitematic downloaded the `kitematic/hello-world-nginx` **What just happened?** Kitematic downloaded the `kitematic/hello-world-nginx`
image from the Docker Hub and then created and ran a Docker Nginx container from image from the Docker Hub and then created and ran a Docker Nginx container from
@ -47,12 +54,12 @@ but you can change this in the container settings. To access the files via
finder, click on the in-app folder icon for a container and "Enable all volumes finder, click on the in-app folder icon for a container and "Enable all volumes
to edit via Finder": to edit via Finder":
![Nginx data volume](../assets/nginx-data-volume.png) ![Nginx data volume](../images/nginx-data-volume.png)
A Finder window of the folder should open containing the index.html file we see A Finder window of the folder should open containing the index.html file we see
being served by the container. being served by the container.
![Nginx data folder](../assets/nginx-data-folder.png) ![Nginx data folder](../images/nginx-data-folder.png)
#### Serving Your Own Website Data #### Serving Your Own Website Data
@ -61,12 +68,12 @@ files](https://github.com/gabrielecirulli/2048/archive/master.zip) for 2048, a
popular (and addictive) web-based tile game. Extract this zip file into the popular (and addictive) web-based tile game. Extract this zip file into the
folder you just opened: folder you just opened:
![Website files for 2048](../assets/nginx-2048-files.png) ![Website files for 2048](../images/nginx-2048-files.png)
Switch back to Kitematic and restart the container by clicking the "Restart" Switch back to Kitematic and restart the container by clicking the "Restart"
button as shown below. Your Nginx container should now be serving 2048. button as shown below. Your Nginx container should now be serving 2048.
![Nginx running 2048](../assets/nginx-serving-2048.png) ![Nginx running 2048](../images/nginx-serving-2048.png)
**What just happened?** **What just happened?**

Просмотреть файл

@ -1,8 +1,15 @@
page_title: Kitematic Tutorial: Set up an Nginx web server <!--[metadata]>
page_description: Tutorial demonstrating the setup of an Nginx web server using Docker and Kitematic +++
page_keywords: docker, documentation, about, technology, kitematic, gui, rethink, tutorial title = "Creating a Local RethinkDB Database for Development"
description = "Tutorial demonstrating the setup of an RethinkDB database for development"
keywords = ["docker, documentation, about, technology, kitematic, gui, rethink, tutorial"]
[menu.main]
parent="smn_workw_kitematic"
weight=3
+++
<![end-metadata]-->
# Creating a Local RethinkDB Database for Development # Kitematic Tutorial: Creating a Local RethinkDB Database for Development
In this tutorial, you will: In this tutorial, you will:
@ -12,22 +19,22 @@ In this tutorial, you will:
### Setting up RethinkDB in Kitematic ### Setting up RethinkDB in Kitematic
First, if you haven't yet done so, [download and start First, if you haven't yet done so, [download and start
Kitematic](./index.md). Once open, the app should look like Kitematic](./kitematic-overview.md). Once open, the app should look like
this: this:
![Rethink create button](../assets/rethink-create.png) ![Rethink create button](../images/rethink-create.png)
Click on the _Create_ button of the `rethinkdb` image listing in the recommended Click on the _Create_ button of the `rethinkdb` image listing in the recommended
list as shown above. This will download & run a RethinkDB container within a few list as shown above. This will download & run a RethinkDB container within a few
minutes. Once it's done, you'll have a local RethinkDB database up and running. minutes. Once it's done, you'll have a local RethinkDB database up and running.
![Rethink container](../assets/rethink-container.png) ![Rethink container](../images/rethink-container.png)
Let's start using it to develop a node.js app. For now, let's figure out which Let's start using it to develop a node.js app. For now, let's figure out which
IP address and port RethinkDB is listening on. To find out, click the `Settings` IP address and port RethinkDB is listening on. To find out, click the `Settings`
tab and then the `Ports` section: tab and then the `Ports` section:
![Rethink create button](../assets/rethink-ports.png) ![Rethink create button](../images/rethink-ports.png)
You can see there that for RethinkDB port `28015`, the container is listening on You can see there that for RethinkDB port `28015`, the container is listening on
host `192.168.99.100` and port `49154` (in this example - ports may be different host `192.168.99.100` and port `49154` (in this example - ports may be different
@ -58,5 +65,5 @@ Now, point your browser to `http://localhost:8000`. Congratulations, you've
successfully used a RethinkDB container in Kitematic to build a real-time chat successfully used a RethinkDB container in Kitematic to build a real-time chat
app. Happy coding! app. Happy coding!
![Rethink app preview](../assets/rethinkdb-preview.png) ![Rethink app preview](../images/rethinkdb-preview.png)

Просмотреть файл

@ -1,6 +1,12 @@
page_title: Kitematic User Guide: Intro & Overview <!--[metadata]>
page_description: Documentation that provides an overview of Kitematic and installation instructions +++
page_keywords: docker, documentation, about, technology, kitematic, gui title = "Kitematic User Guide: Intro & Overview"
description = "Documentation that provides an overview of Kitematic and installation instructions"
keywords = ["docker, documentation, about, technology, kitematic, gui"]
[menu.main]
parent="smn_workw_kitematic"
+++
<![end-metadata]-->
# Kitematic user guide # Kitematic user guide
@ -24,7 +30,7 @@ stream logs, and single click terminal into your Docker container all from the
GUI. GUI.
First, if you haven't yet done so, [download and start First, if you haven't yet done so, [download and start
Kitematic](./index.md). Kitematic](./kitematic-overview.md).
## Container list ## Container list
@ -44,7 +50,7 @@ The "New Container" page lets you search for and select from images on the Docke
When you've found the image you want to run, you can click "Create" to pull, create, When you've found the image you want to run, you can click "Create" to pull, create,
and run the container. and run the container.
![Nginx create](../assets/browse-images.png) ![Nginx create](../images/browse-images.png)
## Working with a container ## Working with a container
@ -58,7 +64,7 @@ for your container - either a preview of the HTML output for a container that ha
server, the main container process' logs, and any container volumes that have been server, the main container process' logs, and any container volumes that have been
configured. configured.
![Redis container in Kitematic](../assets/cli-redis-container.png) ![Redis container in Kitematic](../images/cli-redis-container.png)
The summary page will show different things depending on the image metadata. If The summary page will show different things depending on the image metadata. If
a known "web" port (see below) is `EXPOSED`, then Kitematic assumes its a web page, a known "web" port (see below) is `EXPOSED`, then Kitematic assumes its a web page,
@ -97,7 +103,7 @@ This allows you to manage files in volumes via the Finder.
Kitematic exposes a container's volume data under `~/Kitematic/<container's name>/`. Kitematic exposes a container's volume data under `~/Kitematic/<container's name>/`.
Quick access to this folder (or directory) is available via the app: Quick access to this folder (or directory) is available via the app:
![Accessing the volumes directory](../assets/volumes-dir.png) ![Accessing the volumes directory](../images/volumes-dir.png)
> **Note**: When you "Enable all volumes to edit files in Finder", the Docker > **Note**: When you "Enable all volumes to edit files in Finder", the Docker
> container will be stopped, removed and re-created with the new `volumes` > container will be stopped, removed and re-created with the new `volumes`
@ -114,7 +120,7 @@ already have the HTML, Javascript, and CSS for your website under
Navigate to the "Settings" tab of the container, and goto the "Volumes". This Navigate to the "Settings" tab of the container, and goto the "Volumes". This
screen allows you to set the mappings individually. screen allows you to set the mappings individually.
![screen shot 2015-02-28 at 2 48 01 pm](../assets/change-folder.png) ![screen shot 2015-02-28 at 2 48 01 pm](../images/change-folder.png)
> **Note**: When you "Change Folders", the Docker > **Note**: When you "Change Folders", the Docker
> container will be stopped, removed and re-created with the new `volumes` > container will be stopped, removed and re-created with the new `volumes`
@ -169,7 +175,7 @@ directly reflected in Kitematic.
To open a terminal via Kitematic, just press whale button at the bottom left, as To open a terminal via Kitematic, just press whale button at the bottom left, as
shown below: shown below:
![CLI access button](../assets/cli-access-button.png) ![CLI access button](../images/cli-access-button.png)
### Example: Creating a new Redis container ### Example: Creating a new Redis container
@ -177,7 +183,7 @@ Start by opening a Docker-CLI ready terminal by clicking the whale button as
described above. Once the terminal opens, enter `docker run -d -P redis`. This described above. Once the terminal opens, enter `docker run -d -P redis`. This
will pull and run a new Redis container via the Docker CLI. will pull and run a new Redis container via the Docker CLI.
![Docker CLI terminal window](../assets/cli-terminal.png) ![Docker CLI terminal window](../images/cli-terminal.png)
> **Note**: If you're creating containers from the commandline, use `docker run -d` > **Note**: If you're creating containers from the commandline, use `docker run -d`
> so that Kitematic can re-create the container when settings are changed via the > so that Kitematic can re-create the container when settings are changed via the
@ -185,7 +191,7 @@ will pull and run a new Redis container via the Docker CLI.
Now, go back to Kitematic. The Redis container should now be visible. Now, go back to Kitematic. The Redis container should now be visible.
![Redis container in Kitematic](../assets/cli-redis-container.png) ![Redis container in Kitematic](../images/cli-redis-container.png)
## Next Steps ## Next Steps