Using Docker
Restrictions
Restrictions on using crgoup kmem for Docker: In EulerOS 2.2 and earlier versions, the kernel does not support cgroup kmem.
Instructions
Docker automatically starts after the installation is complete. If you want to use the Docker executable program, you can use docker daemon and the background process used to start Docker. Root permission is required to start Docker background processes. This section describes some simple applications of Docker. Commands are not elaborated here. For details about more applications of Docker, see the execution result of the docker -- help command.
- Downloading Images
docker pull euleros
Running the preceding command will download EulerOS images from Docker Hub.
If you have your own hub, run following commands to download images from your hub:
docker daemon -D --insecure-registry=rnd-dockerhub.huawei.com docker pull rnd-dockerhub.huawei.com/library/euleros
In the preceding command, rnd-dockerhub.huawei.com indicates you own hub address and library indicates the user account of hub. This section uses EulerOS as an example. You can also download other open-source images from DockerHub.
- Run the following command to start the container:
docker run -ti euleros bash
- You can run --help command to obtain information about almost all use of Docker.
docker --help #Show docker sub-command docker daemon --help #Show details about docker daemon.