How to install ubuntu system in docker

Updated on technology 2024-03-23
2 answers
  1. Anonymous users2024-02-07

    The Ubuntu installation tutorial is as follows.

    1. Hard disk installation method.

    2. Double-click the "file", and the software will guide the user to install the official version of ubuntu.

    Second, ubuntu system U disk installation method.

    2. A USB flash drive that supports booting greater than or equal to 1G.

    3. The latest version of UltraIso.

    4. A computer with Internet access.

    Next is the installation and setup steps, which is relatively long, I hope you can be patient and watch it.

    5. Use Ultraiso to write the hard disk image.

    6. Restart the computer and select USB flash drive to boot.

    7. Select Simplified Chinese to start the installation;

    8. The system is generally installed in the last partition.

    9. Long waiting;

    10. After the installation is completed, restart the computer;

    11. After entering the password, you can enter the ubuntu system.

  2. Anonymous users2024-02-06

    We make our own mirrors. In this article, I would like to explain how to create an image.

    There are two main ways to make an image:

    Use docker commit to create an image.

    Use docker build to create an image.

    In both cases, they serve their own goals by improving existing images. Creating a base image is described in a separate article, "Making a Base Image from Scratch".

    docker commit

    docker commit is a commit to a change in the version control system. To create an image in this way, you essentially run a base image and then install and modify the software on the base image. Finally, the changes are submitted to the version system.

    Select a base image.

    The selection of the base image should be based on your own needs. You can choose an existing application image to transform it, or you can choose a basic system image such as Ubuntu, Debian, or OpenSuse.

    Let's use Ubuntu as an example to illustrate.

    Step 1: Run the ubuntu image.

    docker run -i -t ubuntu /bin/bash

    Step 2: Install the software and modify the software configuration, for example, apache2

    apt-get -yqq update

    apt-get -y install apache2

    After the installation is complete, configure and modify apache2.

    Step 3: Exit Docker and save the image.

    Use the "exit" command to exit the container.

    Run the docker comit command to save it.

    docker commit 61412230ae46 own-apache2

    docker commit command parameters.

    Command format. docker commit [options] container [repository[:tag]]

    options:

    a, -author= The author of the submitted image.

    c, -change=apply dockerfile instruction to the created image, not used.

    m, -message= Caption at the time of submission.

    p, -pause=true at commit, pauses the container.

    container:

    You can use the container's name or ID

    repository

    Specify the image repository, in the example above, specify local storage.

    You can specify a remote image repository, such as Docker Hub. You can also build your own warehouse to store images

    tag: image tag

Related questions
3 answers2024-03-23

This is just a piece of software, what's there!

19 answers2024-03-23

1. Tools required: 1. A computer;

2. CAD2014 installation software; >>>More

3 answers2024-03-23

pwd=bp46 extraction code: bp46linux ubuntu is the world's leading open-source operating system. At present, it is widely used in personal computers, intelligent Internet of Things, containers, servers and clouds. >>>More

8 answers2024-03-23

Use ghost to put two systems on two different disks.

10 answers2024-03-23

If you are under the clone version, you must first make sure that what you are under is usable. Then you go into DOS to copy a version of ghost to the hard disk, and then put the disc in, run ghost to find the scene file on the disc with ghost, and then you can press load.