Skip to content

Commit 17e8887

Browse files
committed
small changes in chapter 1
1 parent e47e220 commit 17e8887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

1-basics/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Docker image registries are web services where Docker images live until you want
2424

2525
* Public registries - like *Docker hub*.
2626

27-
* Private registries - like *hub.molnet.svt.se*, where most of SVT:s Development teams store their images.
27+
* Private registries - like *https://harbor.support.aurora.svt.se/harbor/*, where most of SVT:s Development teams store their images.
2828

2929
The docker command assumes that you want to use *Docker hub* unless you specify another repository.
3030

@@ -140,7 +140,7 @@ Look at the output: Images have *IDs*, *names* and *tags* to help identify them.
140140

141141
## 1.2 Running things in containers <a name="commands"></a>
142142

143-
OK, so there was some output from the last command, but nothing really *happened* in that container, right? The reason for this is simply that the Ubuntu image does not have instructions to actually do anything when it is run - it only provides a simulated Ubuntu environment for *you* to run commands in. If we want to make the container actually do something, we have to provide it with some more instructions.
143+
OK, so there was some output from the command `sh docker run ubuntu`, but nothing really *happened* in that container, right? The reason for this is simply that the Ubuntu image does not have instructions to actually do anything when it is run - it only provides a simulated Ubuntu environment for *you* to run commands in. If we want to make the container actually do something, we have to provide it with some more instructions.
144144

145145
The complete syntax for the `docker run` command is:
146146

@@ -187,7 +187,7 @@ The resulting container's job is to print the date and time every 10 seconds. It
187187

188188
To manage continuously running containers like this one we can use the `docker ps` command. It outputs information about all running containers, such as their *Container ID*, what image they use, what commands they are running, and their age.
189189

190-
When we know a container's *Container ID*, we can manage it further. The `docker kill` command is used to stop a running container.
190+
When we know a container's *Container ID* or *Container name*, we can manage it further. The [`docker kill`](https://docs.docker.com/engine/reference/commandline/kill/) command is used to stop a running container imediately, and the [`docker stop`](https://docs.docker.com/engine/reference/commandline/stop/) command will attempt to stop the container's processes gracefully and then kill the container.
191191

192192
```sh
193193
docker ps # Show information about running containers
@@ -358,7 +358,7 @@ The output actually contains a whole section of networking information:
358358
}
359359
```
360360

361-
And as we can see, the container has the IP address `172.17.0.2`. It is a private address on a /24 network that is managed by the docker daemon and only exists inside your computer. Every docker container you start gets assigned one automatically. Right now we aren't using it for anything, but it might come in useful later.
361+
And as we can see, the container has the IP address `172.17.0.2`. It is a private address on a /16 network that is managed by the docker daemon and only exists inside your computer. Every docker container you start gets assigned one automatically. Right now we aren't using it for anything, but it might come in useful later.
362362

363363
(There is *a lot* more to docker networking, but this is basically the default behaviour and it is what will usually happen if you run docker with the default configuration. Most of us never need to dig deeper than this, fortunately, but you should know that this is one specific scenario only and many many more exist out there.)
364364

0 commit comments

Comments
 (0)