# buildroot_docker_container **Repository Path**: nealtang/buildroot_docker_container ## Basic Information - **Project Name**: buildroot_docker_container - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-04 - **Last Updated**: 2024-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Build docker image ```bash cd /home/tyf/git/brbuildbox docker build --no-cache -t brfsbox . ``` ## Use run container and build ```bash $ cd $ ls -al # Look over buildroot file owner 总计 1232 drwxrwxr-x 17 tyf tyf 4096 7月 4 16:51 . drwxrwxr-x 7 tyf tyf 4096 7月 4 11:45 .. drwxrwxr-x 2 tyf tyf 4096 3月 28 17:17 arch ..... $ cat /etc/passwd | grep tyf # Get owner uid and gid tyf:x:1001:1001:Oneal Tang,,,:/home/tyf:/bin/bash $ docker run -u 1001:1001 -v $(pwd):/mnt -itd brfsbox /bin/bash # Run container, -u for uid and gid $ docker ps # Get container names CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8e1122f65df1 brfsbox "/bin/bash" 5 seconds ago Up 3 seconds fervent_hofstadter $ docker attach fervent_hofstadter # Enter container I have no name!@8e1122f65df1:/$ cd /mnt ```