lab 6.1 busybox.tar
I am having problems with file busybox.tar. I checked and it said that it was empty so I decided to start the lab over and in doing so I got stuck on the second command instead of the third.
The errors I received the first time:
student@ubuntu:~$ mkdir -p runc-container/rootfs
student@ubuntu:~$ docker container export \ $(docker container create busybox) \ > busybox.tar
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
809d8e20e203: Pull complete
Digest: sha256:2376a0c12759aa1214ba83e771ff252c7b1663216b192fbe5e0fb364e952f85c
Status: Downloaded newer image for busybox:latest
"docker container export" requires exactly 1 argument.
See 'docker container export --help'.
Usage: docker container export [OPTIONS] CONTAINER
Export a container's filesystem as a tar archive
student@ubuntu:~$ tar -C runc-container/rootfs/ -xf busybox.tar
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
student@ubuntu:~$ file busybox.tar
busybox.tar: empty
The errors I am receiving now after starting over:
student@ubuntu:~$ docker container export \ $(docker container create busybox) \ > busybox.tar
"docker container export" requires exactly 1 argument.
See 'docker container export --help'.
Usage: docker container export [OPTIONS] CONTAINER
Export a container's filesystem as a tar archive
Comments
-
We were able to fix the issue on LFS253 Office Hours

1.- Tried the commands on the student VM with Ubuntu 20.04 and failed.
2.- Tried the commands on my VM with Ubuntu 22.04 and worked.
3.- Installed a cloud VM with Ubuntu 22.04 and failed. So we had some issues related to permissions and modified the docker command to this:sudo docker container export $(sudo docker container create busybox) > busybox.tar
Note that sudo in the second docker command is needed too.
And it worked (Christy haven't configured the system to allow a non root user to run docker yet).
Christy was going to see if the solution works on Ubuntu 20.04 as well.
Regards,
Luis.1 -
Hi @christyww and @luisviveropena,
Thanks for your feedback and troubleshooting details.
Indeed, the labs were written and tested on Ubuntu 20.04 (on both local VirtualBox VM and Google Cloud GCE VM). With all permissions in place as set in lab 4.3, the lab reported above worked as described. However, as both Docker and Ubuntu mature, changes can be expected, eventually impacting the behavior of the lab exercises.
Please try lab 6.1 on the recommended Ubuntu release and docker permissions from lab 4.3.
Regards,
-Chris1 -
The solution worked on ubuntu 20.04 as well!
1 -
0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 755 Linux Foundation IT Professional Programs
- 375 Cloud Engineer IT Professional Program
- 170 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 5 DevOps & GitOps IT Professional Program
- 100 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 2 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 5 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 2 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 795 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 90 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 112 Mobile Computing
- 20 Android
- 77 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 393 Off Topic
- 121 Introductions
- 182 Small Talk
- 29 Study Material
- 980 Programming and Development
- 310 Kernel Development
- 652 Software Development
- 995 Software
- 387 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)