mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
Fix documentation order
This commit is contained in:
parent
1f38e2226e
commit
b9d75d899d
51
README.md
51
README.md
@ -386,31 +386,6 @@ By default, `docker-bash` will open a Bash session. You can also tell it to run
|
||||
|
||||
docker-bash YOUR-CONTAINER-ID echo hello world
|
||||
|
||||
|
||||
<a name="building"></a>
|
||||
## Building the image yourself
|
||||
|
||||
If for whatever reason you want to build the image yourself instead of downloading it from the Docker registry, follow these instructions.
|
||||
|
||||
Clone this repository:
|
||||
|
||||
git clone https://github.com/phusion/baseimage-docker.git
|
||||
cd baseimage-docker
|
||||
|
||||
Start a virtual machine with Docker in it. You can use the Vagrantfile that we've already provided.
|
||||
|
||||
vagrant up
|
||||
vagrant ssh
|
||||
cd /vagrant
|
||||
|
||||
Build the image:
|
||||
|
||||
make build
|
||||
|
||||
If you want to call the resulting image something else, pass the NAME variable, like this:
|
||||
|
||||
make build NAME=joe/baseimage
|
||||
|
||||
<a name="disabling_ssh"></a>
|
||||
### Disabling SSH
|
||||
|
||||
@ -439,6 +414,32 @@ To verify that it works, [open a bash shell in your container](#inspecting), mod
|
||||
|
||||
**Note on apt-get upgrading:** if any Ubuntu updates overwrite libnss_files.so.2, then the workaround is removed. You have to re-enable it by running `/usr/bin/workaround-docker-2267`. To be safe, you should run this command every time after running `apt-get upgrade`.
|
||||
|
||||
|
||||
<a name="building"></a>
|
||||
## Building the image yourself
|
||||
|
||||
If for whatever reason you want to build the image yourself instead of downloading it from the Docker registry, follow these instructions.
|
||||
|
||||
Clone this repository:
|
||||
|
||||
git clone https://github.com/phusion/baseimage-docker.git
|
||||
cd baseimage-docker
|
||||
|
||||
Start a virtual machine with Docker in it. You can use the Vagrantfile that we've already provided.
|
||||
|
||||
vagrant up
|
||||
vagrant ssh
|
||||
cd /vagrant
|
||||
|
||||
Build the image:
|
||||
|
||||
make build
|
||||
|
||||
If you want to call the resulting image something else, pass the NAME variable, like this:
|
||||
|
||||
make build NAME=joe/baseimage
|
||||
|
||||
|
||||
<a name="conclusion"></a>
|
||||
## Conclusion
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user