You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: beginner/chapters/webapps.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,10 @@ Great! So you have now looked at `docker run`, played with a Docker container an
6
6
7
7
Let's start by taking baby-steps. First, we'll use Docker to run a static website in a container. The website is based on an existing image. We'll pull a Docker image from Docker Hub, run the container, and see how easy it is to set up a web server.
8
8
9
-
The image that you are going to use is a single-page website that was already created for this demo and is available on the Docker Hub as [`seqvence/static-site`](https://hub.docker.com/r/seqvence/static-site/). You can download and run the image directly in one go using `docker run` as follows.
9
+
The image that you are going to use is a single-page website that was already created for this demo and is available on the Docker Hub as [`dockersamples/static-site`](https://hub.docker.com/r/dockersamples/static-site/). You can download and run the image directly in one go using `docker run` as follows.
10
10
11
11
```
12
-
$ docker run -d seqvence/static-site
12
+
$ docker run -d dockersamples/static-site
13
13
```
14
14
15
15
>**Note:** The current version of this image doesn't run without the `-d` flag. The `-d` flag enables **detached mode**, which detaches the running container from the terminal/shell and returns your prompt after the container starts. We are debugging the problem with this image but for now, use `-d` even for this first example.
@@ -31,7 +31,7 @@ Since we ran the container in detached mode, we don't have to launch another ter
31
31
```
32
32
$ docker ps
33
33
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
34
-
a7a0e504ca3e seqvence/static-site "/bin/sh -c 'cd /usr/" 28 seconds ago Up 26 seconds 80/tcp, 443/tcp stupefied_mahavira
34
+
a7a0e504ca3e dockersamples/static-site "/bin/sh -c 'cd /usr/" 28 seconds ago Up 26 seconds 80/tcp, 443/tcp stupefied_mahavira
35
35
```
36
36
37
37
Check out the `CONTAINER ID` column. You will need to use this `CONTAINER ID` value, a long sequence of characters, to identify the container you want to stop, and then to remove it. The example below provides the `CONTAINER ID` on our system; you should use the value that you see in your terminal.
@@ -45,7 +45,7 @@ $ docker rm a7a0e504ca3e
45
45
Now, let's launch a container in **detached** mode as shown below:
Run `docker ps` to make sure the containers are gone.
@@ -109,12 +109,12 @@ CONTAINER ID IMAGE COMMAND CREATED
109
109
110
110
In this section, let's dive deeper into what Docker images are. You will build your own image, use that image to run an application locally, and finally, push some of your own images to Docker Hub.
111
111
112
-
Docker images are the basis of containers. In the previous example, you **pulled** the *seqvence/static-site* image from the registry and asked the Docker client to run a container **based** on that image. To see the list of images that are available locally on your system, run the `docker images` command.
112
+
Docker images are the basis of containers. In the previous example, you **pulled** the *dockersamples/static-site* image from the registry and asked the Docker client to run a container **based** on that image. To see the list of images that are available locally on your system, run the `docker images` command.
113
113
114
114
```
115
115
$ docker images
116
116
REPOSITORY TAG IMAGE ID CREATED SIZE
117
-
seqvence/static-site latest 92a386b6e686 2 hours ago 190.5 MB
117
+
dockersamples/static-site latest 92a386b6e686 2 hours ago 190.5 MB
Copy file name to clipboardExpand all lines: developer-tools/java/chapters/ch01-setup.adoc
+9-6
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,19 @@
4
4
5
5
This section describes the hardware and software needed for this workshop, and how to configure them. This workshop is designed for a BYOL (Brying Your Own Laptop) style hands-on-lab.
6
6
7
-
== Hardware
7
+
== Hardware & Software
8
8
9
-
. Operating System: Mac OS X (10.10+), Windows 10 Pro+, Ubuntu 12+, CentOS 7+
10
-
. Memory: At least 4 GB+, preferred 8 GB
9
+
. Memory: At least 4 GB+, strongly preferred 8 GB
10
+
. Operating System: Mac OS X (10.10.3+), Windows 10 Pro+ 64-bit, Ubuntu 12+, CentOS 7+.
11
+
+
12
+
NOTE: An older version of the operating system may be used. The installation instructions would differ slightly in that case and are explained in the next section.
13
+
. Amazon Web Services credentials with https://docs.docker.com/docker-for-aws/iam-permissions/[following permissions]. This is only needed for some parts of the workshop.
11
14
12
15
== Install Docker
13
16
14
17
Docker runs natively on Mac, Windows and Linux. This lab will use https://www.docker.com/community-edition[Docker Community Edition]. Follow the https://www.docker.com/community-edition[instructions] to install Docker.
15
18
16
-
NOTE: Docker for Mac and Windows have requirements for a fairly recent operating system version. If your machine does not meet these requirements, then you need to install https://www.docker.com/products/docker-toolbox[Docker Toolbox].
19
+
NOTE: Docker Community Edition have requirements for a fairly recent operating system version. If your machine does not meet these requirements, then you need to install https://www.docker.com/products/docker-toolbox[Docker Toolbox].
17
20
18
21
=== Additional components
19
22
@@ -23,7 +26,7 @@ Install the following additional components:
23
26
24
27
=== Docker Toolbox Notes
25
28
26
-
Skip this section if you are not using Docker Toolbox for Mac or Windows.
29
+
Skip this section if you are using Docker Community Edition.
27
30
28
31
. *Default Docker Machine*: Docker Toolbox creates a Docker Machine named `default`. To make it easier to start/stop the containers, an entry is added into the host mapping table of your operating system.
29
32
+
@@ -36,7 +39,7 @@ docker-machine ip default
36
39
This will provide the IP address associated with the Docker Machine created by Toolbox.
37
40
+
38
41
Edit `/etc/hosts` (Mac OS) or `C:\Windows\System32\drivers\etc\hosts` (Windows) and add:
Copy file name to clipboardExpand all lines: developer-tools/java/chapters/ch05-compose.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ In this Compose file:
63
63
. Image name for each service defined using `image` attribute
64
64
. The `arungupta/couchbase:travel` image starts Couchbase server, configures it using http://developer.couchbase.com/documentation/server/current/rest-api/rest-endpoints-all.html[Couchbase REST API], and loads a sample bucket
65
65
. The `arungupta/couchbase-javaee:travel` image starts WildFly and deploys application WAR file built from https://github.com/arun-gupta/couchbase-javaee. Clone that project if you want to build your own image.
66
-
. `envrionment` attribute defines environment variables accessible by the application deployed in WildFly. `COUCHBASE_URI` refers to the database service. This is used in the application code as shown at https://github.com/arun-gupta/couchbase-javaee/blob/master/src/main/java/org/couchbase/sample/javaee/Database.java.
66
+
. `environment` attribute defines environment variables accessible by the application deployed in WildFly. `COUCHBASE_URI` refers to the database service. This is used in the application code as shown at https://github.com/arun-gupta/couchbase-javaee/blob/master/src/main/java/org/couchbase/sample/javaee/Database.java.
67
67
. Port forwarding is achieved using `ports` attribute
68
68
. `depends_on` attribute allows to express dependency between services. In this case, Couchbase will be started before WildFly. Application-level health are still user's responsibility.
Copy file name to clipboardExpand all lines: windows/windows-containers/MultiContainerApp.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Multi-Container Applications
2
2
3
-
This tutorial will walk you through using the sample Music Store application with Windows containers. The Music Store application is a standard .NET sample application, available in the [aspnet GitHub repository](https://github.com/aspnet/MusicStore"Music Store application"). We've [forked it](https://github.com/friism/MusicStore"link to forked version of Music Store App") to use Windows Containers.
3
+
This tutorial will walk you through using the sample Music Store application with Windows containers. The Music Store application is a standard .NET sample application, available in the [aspnet GitHub repository](https://github.com/aspnet/MusicStore"Music Store application"). We've [forked it](https://github.com/dockersamples/dotnet-musicstore"link to forked version of Music Store App") to use Windows Containers.
4
4
5
5
## Using docker-compose on Windows
6
6
Docker Compose is a great way develop complex multi-container consisting of databases, queues and web frontends.
0 commit comments