To increase the default storage allocation for Docker volumes, set the dm.basesize storage option to a value higher than 10 GiB in the Docker daemon configuration file /etc/sysconfig/docker on the container instance. Important: After setting the dm.basesize value, any new images that are pulled by Docker use the new storage value that you set. $ sudo docker build -t size. $ sudo docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE size latest da8a9be731ac 4 seconds ago 360.5 MB ubuntu 14.04 6cc0fc2a5ee3 2 weeks ago 187.9 MB Yikes. The 188 MB base image makes sense from the table above, but we’ve practically doubled the image size to run a hello-world python script.
Configure ContainersInstall docker toolboxFollow instructionsChange default vm settingsThe default Virtual Box VM does not provide enough resources to give a good experience when building Yocto images. We recommend you create a new VM with at least 2 CPUs and 4GB of memory.Run Docker Quickstart Terminal and then run the following commands in that terminal.Remove the default vm docker-machine rm default.Re-create the default vm. Choose the number of cpus with -virtualbox-cpu-count. For this example we'll use two. Choose the amount of RAM: -virtualbox-memory.
This is also based on the host hardware. However, choose at least 4GB.
Choose the amount of disk space: -virtualbox-disk-size. It is recommended that this be at least 50GB since building generates a lot. of output. In this example we'll choose 50GB. Create vm with new settingsdocker-machine create -d virtualbox -virtualbox-cpu-count=2 -virtualbox-memory=4096 -virtualbox-disk-size=50000 default.Restart docker docker-machine stopexitThen start open a new Docker Quickstart Terminal.Create the samba container.In the new quickstart terminal create a volume as follows.
Docker volume create -name myvolumedocker run -it -rm -v myvolume:/workdir busybox chown -R 1000:1000 /workdir.Create a samba container that will allow you to see the files in the volume. Docker create -t -p 445:445 -name samba -v myvolume:/workdir crops/samba.Start the samba container docker start samba.Get the ip address used to talk to samba and open /workdir docker-machine ipThe result of this command is the address you will use to see the workdir.In this example let's say the command returned 192.168.99.100. Now, to seethe workdir open the file browser in windows (win+e) and type 192.168.99.100workdirUsing the poky containerBefore using the poky container, make sure the samba container is running. Note that if you have started it in a previous terminal it will still be running. Run poky container as follows, note that we use the volume created above when specifying the workdir.
Docker run -rm -it -v myvolume:/workdir crops/poky -workdir=/workdirYou will see a prompt that looks likepokyuser@892e5d2574d6:/workdir$Although this is called the poky container, it does not include the bitbake meta-data for the Yocto Project poky distro, instead it is a Linux environment with all dependencies already installed. See the to get started with with Yocto project.TroubleshootingCannot connect to dockerYou may see the following error when starting the QuickStart terminal This machine has been allocated an IP address, but Docker Machine could notreach it successfully.SSH for the machine should still work, but connecting to exposed ports, such asthe Docker daemon port (usually:2376), may not work properly.You may need to add the route manually, or use another related workaround.This could be due to a VPN, proxy, or host file configuration issue.First look in at Network Adapters section in Device Manager. If you see entries named 'Virtual Box Bridged Network Driver' wit ha yellow bang against them, you should remove them. Typically simply uninstalling does not work do you must do the following instead. Select driver entry. Right click on it and select 'Update Driver Sofware'.
In resulting window, click on 'Browse my computer.' . Then click on 'Let me pick'. Selected chosen driver and click on 'Next'If that does not fix the problem, start Oracle VirtualBox and remove host-only networks. File - Preferences - Network - Host only Network. Select each network and hit '-' button.
Your Mac comes with a small panel along the edge of the screen called the Dock: It lets you quickly access your favorite apps, files, and folders, as well as any actively-running apps. When you save an item to the Dock, you can access it at any time by clicking on it.
By default, most of Apple's built-in apps start with shortcuts saved in the Dock, but you can also remove those shortcuts and add your own. You can also customize the Dock to fit your preferences. Here's how.
What is the Dock, and what gets displayed there?
The Dock has been with the Mac for over a decade, now: It offers you a quick way to access the Finder (your Mac's underlying filesystem) as well as your currently running applications, favorite apps, favorite files or folders, and the Trash.
When you first set up your Mac, your Dock lives along the bottom of your screen in a translucent rectangle; if you don't like its positioning, you can move it to the left or right of the screen, or have it automatically hide whenever you're not interacting with it. Items are organized as follows, left to right:
- The Finder
- Favorite app shortcuts
- Currently-running apps (you can also choose in the Dock preferences whether you want to view an indicator (a little black dot) for currently-open apps)
- Favorite files or folders
- The Trash
Though you can shuffle the position of app shortcuts in the Dock, you can't move the Finder or Trash — they live on opposite ends of the Dock, respectively — nor can you mix file shortcuts with apps in the same section.
How to add apps to the Dock on your Mac
- Launch a Finder window from your Dock.
-
Click on Applications in the sidebar.
- Select an app and drag it to the Dock.
-
Let go of the app while it hovers over the Dock.
If you want to permanently add a currently-running app to your Dock:
- Right-click or Control-click on the app icon in the Dock.
- Select Options under the drop-down menu.
- Click on Keep in Dock.
You can alternatively just drag the icon to a different position in your Dock, which will automatically save it as a favorite shortcut.
How to add files and folders to the Dock on your Mac
Files and folders can also be saved to your Dock, but they can only be stored on the far right of the Dock, after your app shortcuts. The Dock has a demarcating line that separates apps from files and folders, so you won't mix them up.
- Launch a Finder window from your Dock.
- Select a file or folder from its location on your Mac and drag it to the right side of the Dock.
- Let go of the file or folder while it hovers over the right side of the Dock.
How to remove apps, files, and folders from the Dock on your Mac
If you don't want a particular app, file or folder in your Dock anymore, you can remove it with just one gesture. Note that this doesn't remove the item from your computer, it just removes the shortcut from the Dock; you can always re-add the app or folder by following the steps above.
-
Select an app, file, or folder and drag it out of the Dock.When it is hovering over your desktop, you will see the word Remove appear above the app, file, or folder.
-
Let go of the app, file, or folder. It will disappear from the Dock.
-
Repeat the steps above to remove all items you no longer want to kept in the Dock.
Note: If you do this on a currently-open app, it will continue to stay in the Dock until you Quit the application, at which point it will disappear.
How to organize the Dock on your Mac
You can rearrange the placement of apps, files, and folders in your Dock so they are in alphabetical order, color-coordinated, or however you like.
Note: You can't move the Finder or Trash icons to the far left and right of the Dock respectively. They are anchored to the Dock because of their importance to the system.
- Select an app, file, or folder in the Dock.
- Drag it to a new location in the Dock.
-
Let go of the app, file, or folder while it hovers over the new location in the Dock.
How to change the Dock's size on your Mac
You can adjust the size of the dock so that icons are larger or smaller on your screen.
- Click on the Apple icon in the upper left corner of your Mac's screen.
-
Select System Preferences from the drop down menu.
- Click on Dock.
-
Drag the Size slider to the left or right to increase or decrease the size of the Dock.
- Tick the box for Magnification to enable an animation that makes the items in the Dock that your cursor hovers over larger.
-
Drag the Magnification slider to the left or right to increase or decrease how large the icons grow when your cursor hovers over them.
How to change the Dock's orientation on your Mac
You can display the Dock on the bottom, right, or left side of your screen.
- Click on the Apple icon in the upper left corner of your Mac's screen.
-
Select System Preferences from the drop down menu.
- Click on Dock.
-
Select Left, Bottom, or Right to change the orientation of the Dock.
How to automatically hide or show the Dock on your Mac
On smaller laptop screens, every bit of screen space is valuable. If you don't want the Dock getting in the way of your productivity, you can keep it hidden until you want to access it, at which point, you can call it back up by hovering your cursor over the place where it normally resides.
- Click on the Apple icon in the upper left corner of your Mac's screen.
-
Select System Preferences from the drop down menu.
- Click on Dock.
-
Tick the box for Automatically hide and show the Dock.
How to hide recent applications on the Dock on macOS Mojave
Much like iOS on the iPad, macOS Mojave puts users' recently-used applications in a special section of the Dock. If this doesn't sound like your cup of tea, it's easy enough to turn off.
- Open System Preferences from your Dock or Applications folder.
-
Click Dock.
-
Click the checkbox next to Show recent applications in Dock so that the check disappears (it's on by default).
You can check the box if you decide you want to use this feature.
Bonus: Pro tips for using the Dock
-
You can change the size of the Dock by positioning the cursor over the Dock divider that separates apps from files and folders. The cursor will change to a double-sided arrow; click and drag to increase or decrease the size of the Dock.
-
You can change the location of the Dock by holding down the shift key, clicking on that divider, and dragging the Dock to the left, bottom, or right sides of the screen.
-
If you'd like to keep an app that's open in the Dock permanently, right or control-click the icon in the Dock, select Options and select Keep in Dock.
-
If you want to add spacers between apps, there's a Terminal command to do so.
macOS Catalina
Main
when shooting your shot goes wrongYou might soon be able to retract iMessages
Apple is rumored to be testing several new features for iMessage including one that might let you retract messages sent by mistake, or perhaps ones that you regret...