Skip to content

Commit 51d0c92

Browse files
committed
'Base' is depreciated and should no longer be referenced in the docs.
https://groups.google.com/forum/\#!topic/docker-club/pEjqMgcrnqA
1 parent 4dcc0f3 commit 51d0c92

File tree

6 files changed

+46
-46
lines changed

6 files changed

+46
-46
lines changed

docs/sources/examples/hello_world.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Download the base container
1515

1616
.. code-block:: bash
1717
18-
# Download a base image
19-
docker pull base
18+
# Download an ubuntu image
19+
docker pull ubuntu
2020
2121
The *base* image is a minimal *ubuntu* based container, alternatively you can select *busybox*, a bare
2222
minimal linux system. The images are retrieved from the docker repository.
@@ -47,4 +47,4 @@ See the example in action
4747
</div>
4848

4949

50-
Continue to the :ref:`hello_world_daemon` example.
50+
Continue to the :ref:`hello_world_daemon` example.

docs/sources/examples/hello_world_daemon.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ Hello World Daemon
1111

1212
The most boring daemon ever written.
1313

14-
This example assumes you have Docker installed and with the base image already imported ``docker pull base``.
15-
We will use the base image to run a simple hello world daemon that will just print hello world to standard
14+
This example assumes you have Docker installed and with the ubuntu image already imported ``docker pull ubuntu``.
15+
We will use the ubuntu image to run a simple hello world daemon that will just print hello world to standard
1616
out every second. It will continue to do this until we stop it.
1717

1818
**Steps:**
1919

2020
.. code-block:: bash
2121
22-
CONTAINER_ID=$(docker run -d base /bin/sh -c "while true; do echo hello world; sleep 1; done")
22+
CONTAINER_ID=$(docker run -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done")
2323
24-
We are going to run a simple hello world daemon in a new container made from the base image.
24+
We are going to run a simple hello world daemon in a new container made from the ubuntu image.
2525

2626
- **"docker run -d "** run a command in a new container. We pass "-d" so it runs as a daemon.
27-
- **"base"** is the image we want to run the command inside of.
27+
- **"ubuntu"** is the image we want to run the command inside of.
2828
- **"/bin/sh -c"** is the command we want to run in the container
2929
- **"while true; do echo hello world; sleep 1; done"** is the mini script we want to run, that will just print hello world once a second until we stop it.
3030
- **$CONTAINER_ID** the output of the run command will return a container id, we can use in future commands to see what is going on with this process.

docs/sources/examples/running_ssh_service.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ The password is 'screencast'
3434
.. code-block:: bash
3535
3636
# Hello! We are going to try and install openssh on a container and run it as a servic
37-
# let's pull base to get a base ubuntu image.
38-
$ docker pull base
37+
# let's pull ubuntu to get a base ubuntu image.
38+
$ docker pull ubuntu
3939
# I had it so it was quick
4040
# now let's connect using -i for interactive and with -t for terminal
4141
# we execute /bin/bash to get a prompt.
42-
$ docker run -i -t base /bin/bash
42+
$ docker run -i -t ubuntu /bin/bash
4343
# now let's commit it
4444
# which container was it?
4545
$ docker ps -a |more

docs/sources/use/basics.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Running an interactive shell
2626

2727
.. code-block:: bash
2828
29-
# Download a base image
30-
docker pull base
29+
# Download an ubuntu image
30+
docker pull ubuntu
3131
32-
# Run an interactive shell in the base image,
32+
# Run an interactive shell in the ubuntu image,
3333
# allocate a tty, attach stdin and stdout
34-
docker run -i -t base /bin/bash
34+
docker run -i -t ubuntu /bin/bash
3535
3636
Bind Docker to another host/port or a unix socket
3737
-------------------------------------------------
@@ -52,8 +52,8 @@ For example:
5252
5353
# Run docker in daemon mode
5454
sudo <path to>/docker -H 0.0.0.0:5555 -d &
55-
# Download a base image
56-
docker -H :5555 pull base
55+
# Download an ubuntu image
56+
docker -H :5555 pull ubuntu
5757
5858
You can use multiple -H, for example, if you want to listen
5959
on both tcp and a unix socket
@@ -62,18 +62,18 @@ on both tcp and a unix socket
6262
6363
# Run docker in daemon mode
6464
sudo <path to>/docker -H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock -d &
65-
# Download a base image
66-
docker pull base
65+
# Download an ubuntu image
66+
docker pull ubuntu
6767
# OR
68-
docker -H unix:///var/run/docker.sock pull base
68+
docker -H unix:///var/run/docker.sock pull ubuntu
6969
7070
Starting a long-running worker process
7171
--------------------------------------
7272

7373
.. code-block:: bash
7474
7575
# Start a very useful long-running process
76-
JOB=$(docker run -d base /bin/sh -c "while true; do echo Hello world; sleep 1; done")
76+
JOB=$(docker run -d ubuntu /bin/sh -c "while true; do echo Hello world; sleep 1; done")
7777
7878
# Collect the output of the job so far
7979
docker logs $JOB
@@ -95,7 +95,7 @@ Expose a service on a TCP port
9595
.. code-block:: bash
9696
9797
# Expose port 4444 of this container, and tell netcat to listen on it
98-
JOB=$(docker run -d -p 4444 base /bin/nc -l -p 4444)
98+
JOB=$(docker run -d -p 4444 ubuntu /bin/nc -l -p 4444)
9999
100100
# Which public port is NATed to my container?
101101
PORT=$(docker port $JOB 4444)

docs/sources/use/puppet.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ defined type which can be used like so:
5353

5454
.. code-block:: ruby
5555
56-
docker::image { 'base': }
56+
docker::image { 'ubuntu': }
5757
5858
This is equivalent to running:
5959

6060
.. code-block:: bash
6161
62-
docker pull base
62+
docker pull ubuntu
6363
6464
Note that it will only if the image of that name does not already exist.
6565
This is downloading a large binary so on first run can take a while.
@@ -68,7 +68,7 @@ for exec. Note that you can also remove images you no longer need with:
6868

6969
.. code-block:: ruby
7070
71-
docker::image { 'base':
71+
docker::image { 'ubuntu':
7272
ensure => 'absent',
7373
}
7474
@@ -81,22 +81,22 @@ docker.
8181
.. code-block:: ruby
8282
8383
docker::run { 'helloworld':
84-
image => 'base',
84+
image => 'ubuntu',
8585
command => '/bin/sh -c "while true; do echo hello world; sleep 1; done"',
8686
}
8787
8888
This is equivalent to running the following command, but under upstart:
8989

9090
.. code-block:: bash
9191
92-
docker run -d base /bin/sh -c "while true; do echo hello world; sleep 1; done"
92+
docker run -d ubuntu /bin/sh -c "while true; do echo hello world; sleep 1; done"
9393
9494
Run also contains a number of optional parameters:
9595

9696
.. code-block:: ruby
9797
9898
docker::run { 'helloworld':
99-
image => 'base',
99+
image => 'ubuntu',
100100
command => '/bin/sh -c "while true; do echo hello world; sleep 1; done"',
101101
ports => ['4444', '4555'],
102102
volumes => ['/var/lib/counchdb', '/var/log'],

packaging/debian/lxc-docker.1

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ cd docker\-master
146146
.sp
147147
.nf
148148
.ft C
149-
sudo ./docker run \-i \-t base /bin/bash
149+
sudo ./docker run \-i \-t ubuntu /bin/bash
150150
.ft P
151151
.fi
152152
.sp
@@ -496,22 +496,22 @@ This is the most basic example available for using docker
496496
.sp
497497
This example assumes you have Docker installed.
498498
.sp
499-
Download the base container
499+
Download the ubuntu container
500500
.sp
501501
.nf
502502
.ft C
503-
# Download a base image
504-
docker pull base
503+
# Download an ubuntu image
504+
docker pull ubuntu
505505
.ft P
506506
.fi
507507
.sp
508-
The \fIbase\fP image is a minimal \fIubuntu\fP based container, alternatively you can select \fIbusybox\fP, a bare
509-
minimal linux system. The images are retrieved from the docker repository.
508+
Alternatively you can select \fIbusybox\fP, a bare minimal linux system. The
509+
images are retrieved from the docker repository.
510510
.sp
511511
.nf
512512
.ft C
513513
#run a simple echo command, that will echo hello world back to the console over standard out.
514-
docker run base /bin/echo hello world
514+
docker run ubuntu /bin/echo hello world
515515
.ft P
516516
.fi
517517
.sp
@@ -520,7 +520,7 @@ docker run base /bin/echo hello world
520520
.IP \(bu 2
521521
\fB"docker run"\fP run a command in a new container
522522
.IP \(bu 2
523-
\fB"base"\fP is the image we want to run the command inside of.
523+
\fB"ubuntu"\fP is the image we want to run the command inside of.
524524
.IP \(bu 2
525525
\fB"/bin/echo"\fP is the command we want to run in the container
526526
.IP \(bu 2
@@ -536,15 +536,15 @@ Continue to the \fIhello_world_daemon\fP example.
536536
.sp
537537
The most boring daemon ever written.
538538
.sp
539-
This example assumes you have Docker installed and with the base image already imported \fBdocker pull base\fP.
540-
We will use the base image to run a simple hello world daemon that will just print hello world to standard
539+
This example assumes you have Docker installed and with the ubuntu image already imported \fBdocker pull ubuntu\fP.
540+
We will use the ubuntu image to run a simple hello world daemon that will just print hello world to standard
541541
out every second. It will continue to do this until we stop it.
542542
.sp
543543
\fBSteps:\fP
544544
.sp
545545
.nf
546546
.ft C
547-
$ CONTAINER_ID=$(docker run \-d base /bin/sh \-c "while true; do echo hello world; sleep 1; done")
547+
$ CONTAINER_ID=$(docker run \-d ubuntu /bin/sh \-c "while true; do echo hello world; sleep 1; done")
548548
.ft P
549549
.fi
550550
.sp
@@ -553,7 +553,7 @@ We are going to run a simple hello world daemon in a new container made from the
553553
.IP \(bu 2
554554
\fB"docker run \-d "\fP run a command in a new container. We pass "\-d" so it runs as a daemon.
555555
.IP \(bu 2
556-
\fB"base"\fP is the image we want to run the command inside of.
556+
\fB"ubuntu"\fP is the image we want to run the command inside of.
557557
.IP \(bu 2
558558
\fB"/bin/sh \-c"\fP is the command we want to run in the container
559559
.IP \(bu 2
@@ -766,12 +766,12 @@ Contents:
766766
.sp
767767
.nf
768768
.ft C
769-
# Download a base image
770-
docker import base
769+
# Download an ubuntu image
770+
docker import ubuntu
771771

772-
# Run an interactive shell in the base image,
772+
# Run an interactive shell in the ubuntu image,
773773
# allocate a tty, attach stdin and stdout
774-
docker run \-a \-i \-t base /bin/bash
774+
docker run \-a \-i \-t ubuntu /bin/bash
775775
.ft P
776776
.fi
777777
.SS Starting a long\-running worker process
@@ -782,7 +782,7 @@ docker run \-a \-i \-t base /bin/bash
782782
(docker \-d || echo "Docker daemon already running") &
783783

784784
# Start a very useful long\-running process
785-
JOB=$(docker run base /bin/sh \-c "while true; do echo Hello world!; sleep 1; done")
785+
JOB=$(docker run ubuntu /bin/sh \-c "while true; do echo Hello world!; sleep 1; done")
786786

787787
# Collect the output of the job so far
788788
docker logs $JOB
@@ -803,7 +803,7 @@ docker ps
803803
.nf
804804
.ft C
805805
# Expose port 4444 of this container, and tell netcat to listen on it
806-
JOB=$(docker run \-p 4444 base /bin/nc \-l \-p 4444)
806+
JOB=$(docker run \-p 4444 ubuntu /bin/nc \-l \-p 4444)
807807

808808
# Which public port is NATed to my container?
809809
PORT=$(docker port $JOB 4444)

0 commit comments

Comments
 (0)